DiskUsageItem

data class DiskUsageItem(val type: FileSystemType, val path: String, val sizeInBytes: Int, 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, childItems: List<DiskUsageItem>?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

An array of child items. Empty for regular files. Only directories may contain children.

Link copied to clipboard

Path to the file relative to the Ditto working directory.

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

Type of file.