DiskUsageItem
public struct DiskUsageItem
extension DiskUsageItem: Equatable
extension DiskUsageItem: Hashable
extension DiskUsageItem: CustomStringConvertible
A directory or file in the Ditto working directory. Directories can be traversed by accessing
the childItems
property. Files won’t have any children.
-
Type of file.
Declaration
Swift
public let type: DittoFileSystemType
-
Path to the file relative to the Ditto working directory.
Declaration
Swift
public let path: String
-
Size of the file. In the case of a directory, this is the sum of all file sizes beneath it.
Declaration
Swift
public let sizeInBytes: Int
-
An array of child items. Empty for regular files. Only directories may contain children.
Declaration
Swift
public let childItems: [DiskUsageItem]
-
Undocumented
Declaration
Swift
public init(type: DittoFileSystemType, path: String, sizeInBytes: Int, children: [DiskUsageItem])
-
Declaration
Swift
public var description: String { get }