System · IOS API REFERENCE
FileMode
struct · iOS 27.0+ · SDK 27.1
@frozen struct FileMode
A strongly-typed file mode representing a C `mode_t`.
- Note: Only available on Unix-like platforms.
Members (8)
get · iOS 27.0+permissions
TypeScriptgetPermissions($self: FileMode): FilePermissions
Swift declarationvar permissions: FilePermissions { get set }
The file's permissions, from the mode's permission bits.
Setting this property will mask the `newValue` with the permissions bit mask `ALLPERMS`.
set · iOS 27.0+permissions
TypeScriptsetPermissions($self: FileMode, value: FilePermissions): void
Swift declarationvar permissions: FilePermissions { get set }
The file's permissions, from the mode's permission bits.
Setting this property will mask the `newValue` with the permissions bit mask `ALLPERMS`.
init · iOS 27.0+init
TypeScriptinitTypePermissions(type: FileType, permissions: FilePermissions): FileMode
Swift declarationinit(type: FileType, permissions: FilePermissions)
Creates a `FileMode` from the given file type and permissions.
- Note: This initializer masks the inputs with their respective bit masks.
get · iOS 27.0+type
TypeScriptgetType($self: FileMode): FileType
Swift declarationvar type: FileType { get set }
The file's type, from the mode's file-type bits.
Setting this property will mask the `newValue` with the file-type bit mask `S_IFMT`.
set · iOS 27.0+type
TypeScriptsetType($self: FileMode, value: FileType): void
Swift declarationvar type: FileType { get set }
The file's type, from the mode's file-type bits.
Setting this property will mask the `newValue` with the file-type bit mask `S_IFMT`.
init · iOS 27.0+init
TypeScriptinitRawValue(rawValue: SDKHandle): FileMode
Swift declarationinit(rawValue: CInterop.Mode)
Creates a strongly-typed `FileMode` from the raw C value.
get · iOS 27.0+rawValue
TypeScriptgetRawValue($self: FileMode): SDKHandle
Swift declarationvar rawValue: CInterop.Mode
The raw C mode.
set · iOS 27.0+rawValue
TypeScriptsetRawValue($self: FileMode, value: SDKHandle): void
Swift declarationvar rawValue: CInterop.Mode
The raw C mode.
Skipped declarations
No declarations were skipped in this snapshot.
All System types →