DITDiskUsage
@interface DITDiskUsage : NSObject
Entrypoint for accessing information about the amount of disk storage used by Ditto.
This class can’t be instantiated. You can access an instance through the ditto.diskUsage
API.
-
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE;
-
Returns a single
DiskUsageItem
representing a tree of directories with file size information. Use theobserve()
method to access the same information with callbacks as the size of files change over time.Declaration
Objective-C
@property (nonatomic, copy, readonly) DITDiskUsageItem *_Nonnull exec;
Return Value
DiskUsageItem
-
Starts filesystem observation. Disk usage details will be passed to the given closure as files in the Ditto directory change size over time.
Declaration
Objective-C
- (nonnull DITDiskUsageObserverHandle *)observe: (nonnull void (^)(DITDiskUsageItem *_Nonnull))eventHandler;
Return Value
A
DiskUsageObserverHandle
which should be held in scope to continue observation. Invoke thestop()
method on the handle to terminate callbacks.