# FileTreeElement

interface FileTreeElement(source)

Information about a file in a directory/file tree.

#### Inheritors

FileVisitDetails
FileCopyDetails

## Functions

copyTo
Link copied to clipboard
abstract fun copyTo(target: File): Boolean
Copies this file to the given target file.
abstract fun copyTo(output: OutputStream)
Copies the content of this file to an output stream.
getFile
Link copied to clipboard
abstract fun getFile(): File
Returns the file being visited.
getLastModified
Link copied to clipboard
abstract fun getLastModified(): Long
Returns the last modified time of this file at the time of file traversal.
getName
Link copied to clipboard
abstract fun getName(): String
Returns the base name of this file.
getPath
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this file, relative to the root of the containing file tree.
getPermissions
Link copied to clipboard
abstract fun getPermissions(): FilePermissions
Provides a read-only view of access permissions of this file.
getRelativePath
Link copied to clipboard
abstract fun getRelativePath(): RelativePath
Returns the path of this file, relative to the root of the containing file tree.
getSize
Link copied to clipboard
abstract fun getSize(): Long
Returns the size of this file at the time of file traversal.
isDirectory
Link copied to clipboard
abstract fun isDirectory(): Boolean
Returns true if this element is a directory, or false if this element is a regular file.
open
Link copied to clipboard
abstract fun open(): InputStream
Opens this file as an input stream.