Structure

FileManager.SearchPathDomainMask

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

Declaration

struct SearchPathDomainMask

Overview

These constants are used by the urls(for:in:) and url(for:in:appropriateFor:create:) methods of FileManager.

Topics

Creating a Search Path Domain Mask

init(rawValue: UInt)

Creates a search path domain mask.

Specifying Search Path Domains

static var userDomainMask: FileManager.SearchPathDomainMask

The user’s home directory—the place to install user’s personal items (~).

static var localDomainMask: FileManager.SearchPathDomainMask

The place to install items available to everyone on this machine.

static var networkDomainMask: FileManager.SearchPathDomainMask

The place to install items available on the network (/Network).

static var systemDomainMask: FileManager.SearchPathDomainMask

A directory for system files provided by Apple (/System) .

Relationships

Conforms To

See Also

Supporting Types

struct FileManager.DirectoryEnumerationOptions

Options for enumerating the contents of directories.

enum FileManager.SearchPathDirectory

The location of 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.