FileMetadata

class FileMetadata(val isRegularFile: Boolean = false, val isDirectory: Boolean = false, val size: Long = 0)(source)

Represents information about a file or directory obtainable from a filesystem like a type of filesystem node (is it a directory or a file?), its size, and so on.

Constructors

Link copied to clipboard
constructor(isRegularFile: Boolean = false, isDirectory: Boolean = false, size: Long = 0)

Properties

Link copied to clipboard
val isDirectory: Boolean = false

Flag indicating that the metadata was retrieved for a directory.

Link copied to clipboard
val isRegularFile: Boolean = false

Flag indicating that the metadata was retrieved for a regular file.

Link copied to clipboard
val size: Long = 0

File size. Defined only for regular files, for other filesystem entities it will be -1.