Structure

URLFileResourceType

Possible values for the fileResourceTypeKey key.

Topics

Constants

static let namedPipe: URLFileResourceType

The resource is a named pipe.

static let characterSpecial: URLFileResourceType

The resource is a character special file.

static let directory: URLFileResourceType

The resource is a directory.

static let blockSpecial: URLFileResourceType

The resource is a block special file.

static let regular: URLFileResourceType

The resource is a regular file.

static let symbolicLink: URLFileResourceType

The resource is a symbolic link.

static let unknown: URLFileResourceType

The resource’s type is unknown.

Relationships

See Also

File Keys

static let fileAllocatedSizeKey: URLResourceKey

Key for the total size allocated on disk for the file, returned as an NSNumber object (read-only).

static let fileResourceIdentifierKey: URLResourceKey

The resource’s unique identifier, returned as an id (read-only).

static let fileResourceTypeKey: URLResourceKey

The resource’s object type, returned as an NSString object (read-only). See URLFileResourceType for possible values.

static let fileSecurityKey: URLResourceKey

The resource’s security information, returned as an NSFileSecurity object (read-write).

static let fileSizeKey: URLResourceKey

Key for the file’s size in bytes, returned as an NSNumber object (read-only).

static let isAliasFileKey: URLResourceKey

Key for determining whether the file is an alias, returned as a Boolean NSNumber object (read-only).

static let isPackageKey: URLResourceKey

Key for determining whether the resource is a file package, returned as a Boolean NSNumber object (read-write in macOS 10.8 and later, read-only in previous versions). A true value means that the resource is a file package.

static let isRegularFileKey: URLResourceKey

Key for determining whether the resource is a regular file, as opposed to a directory or a symbolic link. Returned as a Boolean NSNumber object (read-only).

static let preferredIOBlockSizeKey: URLResourceKey

The optimal block size to use when reading or writing this file's data, returned as an NSNumber object, or nil if the preferred size is not available (read-only).

static let totalFileAllocatedSizeKey: URLResourceKey

Key for the total allocated size of the file in bytes, returned as an NSNumber object (read-only). This includes the size of any file metadata.

static let totalFileSizeKey: URLResourceKey

Key for the total displayable size of the file in bytes, returned as an NSNumber object (read-only). This includes the size of any file metadata.