FileTreeElement

Information about a file in a directory/file tree.

Inheritors

Functions

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.
Link copied to clipboard
abstract fun getFile(): File
Returns the file being visited.
Link copied to clipboard
abstract fun getLastModified(): Long
Returns the last modified time of this file at the time of file traversal.
Link copied to clipboard
abstract fun getMode(): Int
Returns the UNIX-style file permission mode of this file.
Link copied to clipboard
abstract fun getName(): String
Returns the base name of this file.
Link copied to clipboard
abstract fun getPath(): String
Returns the path of this file, relative to the root of the containing file tree.
Link copied to clipboard
Provides a read-only view of access permissions of this file.
Link copied to clipboard
Returns the path of this file, relative to the root of the containing file tree.
Link copied to clipboard
abstract fun getSize(): Long
Returns the size of this file at the time of file traversal.
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.
Link copied to clipboard
abstract fun open(): InputStream
Opens this file as an input stream.