Structure

FileProtectionType

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

Declaration

struct FileProtectionType

Overview

These values are associated with the FileAttributeKey key protectionKey.

Topics

Creating a File Protection Type

init(rawValue: String)

Creates a file protection type value.

Working with Protection Levels

static let complete: FileProtectionType

The file is stored in an encrypted format on disk and cannot be read from or written to while the device is locked or booting.

static let completeUnlessOpen: FileProtectionType

The file is stored in an encrypted format on disk after it is closed.

static let completeUntilFirstUserAuthentication: FileProtectionType

The file is stored in an encrypted format on disk and cannot be accessed until after the device has booted.

static let none: FileProtectionType

The file has no special protections associated with it.

Relationships

See Also

Supporting Types

struct FileManager.DirectoryEnumerationOptions

Options for enumerating the contents of directories.

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 URLFileProtection

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