Enumeration

NSVolumeEnumerationOptions

Options for enumerating mounted volumes with the mountedVolumeURLsIncludingResourceValuesForKeys:options: method.

Declaration

typedef enum NSVolumeEnumerationOptions : NSUInteger {
    ...
} NSVolumeEnumerationOptions;

Topics

Volume Enumeration Options

NSVolumeEnumerationSkipHiddenVolumes

The enumeration skips hidden volumes.

NSVolumeEnumerationProduceFileReferenceURLs

The enumeration produces file reference URLs rather than path-based URLs.

See Also

Discovering Directory Contents

- contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:

Performs a shallow search of the specified directory and returns URLs for the contained items.

- contentsOfDirectoryAtPath:error:

Performs a shallow search of the specified directory and returns the paths of any contained items.

- enumeratorAtURL:includingPropertiesForKeys:options:errorHandler:

Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified URL.

- enumeratorAtPath:

Returns a directory enumerator object that can be used to perform a deep enumeration of the directory at the specified path.

NSDirectoryEnumerator

An object that enumerates the contents of a directory.

- mountedVolumeURLsIncludingResourceValuesForKeys:options:

Returns an array of URLs that identify the mounted volumes available on the device.

- subpathsOfDirectoryAtPath:error:

Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories.

- subpathsAtPath:

Returns an array of strings identifying the paths for all items in the specified directory.

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