Disk Usage Item
data class DiskUsageItem(val type: FileSystemType, val path: String, val sizeInBytes: Int, val sizeInBytesAsLong: Long = sizeInBytes.toLong(), val childItems: List<DiskUsageItem>?)
A directory or file in the Ditto working directory. Directories can be traversed by accessing the children property. Files won't have any children.
Constructors
Link copied to clipboard
constructor(type: FileSystemType, path: String, sizeInBytes: Int, sizeInBytesAsLong: Long = sizeInBytes.toLong(), childItems: List<DiskUsageItem>?)
Properties
Link copied to clipboard
An array of child items. Empty for regular files. Only directories may contain children.
Link copied to clipboard
Size of the file. In the case of a directory, this is the sum of all file sizes beneath it.
Link copied to clipboard
Size of the file as a Long. In the case of a directory, this is the sum of all file sizes beneath it.
Link copied to clipboard
Type of file.