File Property Keys

Keys that apply to properties of files.

Topics

Constants

kCFURLFileAllocatedSizeKey

Key for the total size allocated on disk for the file, returned as an CFNumber object.

kCFURLFileSizeKey

Key for the file’s size in bytes, returned as a CFNumber object.

kCFURLIsAliasFileKey

Key for determining whether the file is an alias, returned as a CFBoolean object.

kCFURLIsMountTriggerKey

Key for determining whether the URL is a file system trigger directory, returned as a CFBoolean object. Traversing or opening a file system trigger directory causes an attempt to mount a file system on the directory.

kCFURLTotalFileAllocatedSizeKey

Key for the total allocated size of the file in bytes, returned as a CFNumber object. This includes the size of any file metadata.

kCFURLTotalFileSizeKey

Key for the total displayable size of the file in bytes, returned as a CFNumber object. This includes the size of any file metadata.

See Also

File System Constants

Common File System Resource Keys

Keys that are applicable to file system URLs.

iCloud Constants

These constants can be used to determining whether a file is stored in the cloud and to obtain information about its status.

Volume Property Keys

Keys that apply to volumes.

CFError userInfo Dictionary Keys

Keys in the userInfo dictionary of a CFError object when certain CFURL functions return an error.