Type Alias

NSFileAttributeKey

Keys in dictionaries used to get and set file attributes.

Declaration

typedef NSString *NSFileAttributeKey;

Discussion

These keys are used with the methods listed in the Getting and Setting Attributes topic of NSFileManager.

Topics

Accessing File Attributes

NSFileAppendOnly

The key in a file attribute dictionary whose value indicates whether the file is read-only.

NSFileBusy

The key in a file attribute dictionary whose value indicates whether the file is busy.

NSFileCreationDate

The key in a file attribute dictionary whose value indicates the file's creation date.

NSFileDeviceIdentifier

The key in a file attribute dictionary whose value indicates the identifier for the device on which the file resides.

NSFileExtensionHidden

The key in a file attribute dictionary whose value indicates whether the file’s extension is hidden.

NSFileGroupOwnerAccountID

The key in a file attribute dictionary whose value indicates the file’s group ID.

NSFileGroupOwnerAccountName

The key in a file attribute dictionary whose value indicates the group name of the file’s owner.

NSFileHFSCreatorCode

The key in a file attribute dictionary whose value indicates the file’s HFS creator code.

NSFileHFSTypeCode

The key in a file attribute dictionary whose value indicates the file’s HFS type code.

NSFileImmutable

The key in a file attribute dictionary whose value indicates whether the file is mutable.

NSFileModificationDate

The key in a file attribute dictionary whose value indicates the file’s last modified date.

NSFileOwnerAccountID

The key in a file attribute dictionary whose value indicates the file’s owner's account ID.

NSFileOwnerAccountName

The key in a file attribute dictionary whose value indicates the name of the file’s owner.

NSFilePosixPermissions

The key in a file attribute dictionary whose value indicates the file’s Posix permissions.

NSFileProtectionKey

The key in a file attribute dictionary whose value identifies the protection level for this file.

NSFileReferenceCount

The key in a file attribute dictionary whose value indicates the file’s reference count.

NSFileSize

The key in a file attribute dictionary whose value indicates the file’s size in bytes.

NSFileSystemFileNumber

The key in a file attribute dictionary whose value indicates the file’s filesystem file number.

NSFileSystemFreeNodes

The key in a file system attribute dictionary whose value indicates the number of free nodes in the file system.

NSFileSystemFreeSize

The key in a file system attribute dictionary whose value indicates the amount of free space on the file system.

NSFileSystemNodes

The key in a file system attribute dictionary whose value indicates the number of nodes in the file system.

NSFileSystemNumber

The key in a file system attribute dictionary whose value indicates the filesystem number of the file system.

NSFileSystemSize

The key in a file system attribute dictionary whose value indicates the size of the file system.

NSFileType

The key in a file attribute dictionary whose value indicates the file’s type.

See Also

Supporting Types

NSDirectoryEnumerationOptions

Options for enumerating the contents of directories.

NSSearchPathDirectory

The location of significant directories.

NSSearchPathDomainMask

Domain constants specifying base locations to use when you search for significant directories.

NSFileAttributeType

Values representing a file’s type attribute.

NSFileProtectionType

Protection level values that can be associated with a file attribute key.

NSURLFileProtectionType

Protection level values that can be associated with a URL resource key.