File Property Keys

Keys that apply to properties of files.

Symbols

Constants

static let fileSizeKey: URLResourceKey

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

static let fileAllocatedSizeKey: URLResourceKey

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

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.

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 isAliasFileKey: URLResourceKey

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