Contents

FilePermissions

The access permissions for a file.

Declaration

@frozen struct FilePermissions

Overview

The following example creates an instance of the FilePermissions structure from a raw octal literal and compares it to a file permission created using named options:

let perms = FilePermissions(rawValue: 0o644)
perms == [.ownerReadWrite, .groupRead, .otherRead] // true

Topics

Owner Permissions

Group Permissions

Other Permissions

Special Permissions

Interacting with C APIs

Debugging

Default Implementations

See Also

Files