Key for determining whether the resource is excluded from all backups of app data, returned as a Boolean
NSNumber object (read-write).
- iOS 5.1+
- macOS 10.8+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
You can use this property to exclude cache and other app support files which are not needed in a backup. Some operations commonly made to user documents cause this property to be reset to
false; consequently, do not use this property on user documents.
Other Resource Keys
static let addedToDirectoryDateKey: URLResourceKey
The time at which the resource’s was created or renamed into or within its parent directory, returned as an
NSDate. Inconsistent behavior may be observed when this attribute is requested on hard-linked items. This property is not supported by all volumes. (read-only)
static let attributeModificationDateKey: URLResourceKey
The time at which the resource’s attributes were most recently modified, returned as an
NSDate object if the volume supports attribute modification dates, or
nil if attribute modification dates are unsupported (read-only).
static let isExecutableKey: URLResourceKey
Key for determining whether the current process (as determined by the EUID) can execute the resource (if it is a file) or search the resource (if it is a directory), returned as a Boolean
NSNumber object (read-only).
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software