Type Alias

NSFileAttributeType

Values representing a file’s type attribute.

Declaration

typedef NSString *NSFileAttributeType;

Discussion

These strings are the possible values for the NSFileType attribute key contained in the dictionary object returned by attributesOfItemAtPath:error:.

Topics

Accessing File Type Attributes

NSFileTypeBlockSpecial

A block special file.

NSFileTypeCharacterSpecial

A character special file.

NSFileTypeRegular

A regular file.

NSFileTypeSymbolicLink

A symbolic link.

NSFileTypeUnknown

A file whose type is unknown.

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.

NSFileAttributeKey

Keys in dictionaries used to get and set file attributes.

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.

Beta Software

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