A Boolean value that specifies whether the system can delete the associated file at some future time.
SDK
- macOS 10.7+
Framework
- Foundation
Declaration
var isDiscardable: Bool { get set }
Discussion
Marking a file version as discardable gives the system the flexibility to reclaim the space, occupied by the associated file, at some future time. Do not, however, depend on the file being discarded.
After setting this property to true
, do not set this property to false
again. Doing so causes the system to raise an exception. In addition, if you set this property to true
for the version of the file returned by the current
method, the system raises an exception.