Global Variable
NSURLTotalFileSizeKey
Key for the total displayable size of the file in bytes, returned as an NSNumber
object (read-only). This includes the size of any file metadata.
SDKs
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
See Also
File Keys
NSURLFileSecurityKey
The resource’s security information, returned as an NSFileSecurity
object (read-write).
NSURLFileSizeKey
Key for the file’s size in bytes, returned as an NSNumber
object (read-only).
NSURLIsAliasFileKey
Key for determining whether the file is an alias, returned as a Boolean NSNumber
object (read-only).
NSURLIsPackageKey
Key for determining whether the resource is a file package, returned as a Boolean NSNumber
object (read-write in macOS 10.8 and later, read-only in previous versions). A true
value means that the resource is a file package.
NSURLIsRegularFileKey
Key for determining whether the resource is a regular file, as opposed to a directory or a symbolic link. Returned as a Boolean NSNumber
object (read-only).
NSURLPreferredIOBlockSizeKey
The optimal block size to use when reading or writing this file's data, returned as an NSNumber
object, or nil
if the preferred size is not available (read-only).
NSURLTotalFileAllocatedSizeKey
Key for the total allocated size of the file in bytes, returned as an NSNumber
object (read-only). This includes the size of any file metadata.