Structure
FileAttributeKey
Keys in dictionaries used to get and set file attributes.
struct FileAttributeKey
Discussion
These keys are used with the methods listed in the Getting and Setting Attributes topic of FileManager.
Topics
Initializers
init(String)Creates a file attribute key.init(rawValue: String)Creates a file attribute key.
Instance Properties
Type Aliases
Type Properties
static let appendOnly: FileAttributeKeyThe key in a file attribute dictionary whose value indicates whether the file is read-only.static let busy: FileAttributeKeyThe key in a file attribute dictionary whose value indicates whether the file is busy.static let creationDate: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s creation date.static let deviceIdentifier: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the identifier for the device on which the file resides.static let extensionHidden: FileAttributeKeyThe key in a file attribute dictionary whose value indicates whether the file’s extension is hidden.static let groupOwnerAccountID: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s group ID.static let groupOwnerAccountName: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the group name of the file’s owner.static let hfsCreatorCode: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s HFS creator code.static let hfsTypeCode: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s HFS type code.static let immutable: FileAttributeKeyThe key in a file attribute dictionary whose value indicates whether the file is mutable.static let modificationDate: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s last modified date.static let ownerAccountID: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s owner’s account ID.static let ownerAccountName: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the name of the file’s owner.static let posixPermissions: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s Posix permissions.static let protectionKey: FileAttributeKeyThe key in a file attribute dictionary whose value identifies the protection level for this file.static let referenceCount: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s reference count.static let size: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s size in bytes.static let systemFileNumber: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s filesystem file number.static let systemFreeNodes: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the number of free nodes in the file system.static let systemFreeSize: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the amount of free space on the file system.static let systemNodes: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the number of nodes in the file system.static let systemNumber: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the filesystem number of the file system.static let systemSize: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the size of the file system.static let type: FileAttributeKeyThe key in a file attribute dictionary whose value indicates the file’s type.
Relationships
Conforms To
Swift.EquatableSwift.HashableSwift.RawRepresentableSwift.SendableSwift.SendableMetatype