Options for enumerating the contents of directories.


struct DirectoryEnumerationOptions


These options are used with the contentsOfDirectory(at:includingPropertiesForKeys:options:) method.


Creating a Directory Enumeration Options Value

init(rawValue: UInt)

Creates a directory enumeration options value.

Directory Enumeration Options

static var skipsSubdirectoryDescendants: FileManager.DirectoryEnumerationOptions

An option to perform a shallow enumeration that doesn’t descend into directories.

static var skipsPackageDescendants: FileManager.DirectoryEnumerationOptions

An option to treat packages like files and not descend into their contents.


Conforms To

See Also

Supporting Types

enum FileManager.SearchPathDirectory

The location of significant directories.

struct FileManager.SearchPathDomainMask

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

struct FileAttributeKey

Keys in dictionaries used to get and set file attributes.

struct FileAttributeType

Values representing a file’s type attribute.

struct FileProtectionType

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

struct URLFileProtection

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