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

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val childItems: List<DiskUsageItem>?

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

Link copied to clipboard
val path: String

Path to the file relative to the Ditto working directory.

Link copied to clipboard
val sizeInBytes: Int

Size of the file. In the case of a directory, this is the sum of all file sizes beneath it.

Link copied to clipboard
val type: FileSystemType

Type of file.