One Logo Pool Ball
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

TypeScript
getPermissions($self: FileMode): FilePermissions
Swift declaration
var 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

TypeScript
setPermissions($self: FileMode, value: FilePermissions): void
Swift declaration
var 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

TypeScript
initTypePermissions(type: FileType, permissions: FilePermissions): FileMode
Swift declaration
init(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

TypeScript
getType($self: FileMode): FileType
Swift declaration
var 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

TypeScript
setType($self: FileMode, value: FileType): void
Swift declaration
var 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

TypeScript
initRawValue(rawValue: SDKHandle): FileMode
Swift declaration
init(rawValue: CInterop.Mode)

Creates a strongly-typed `FileMode` from the raw C value.

get · iOS 27.0+

rawValue

TypeScript
getRawValue($self: FileMode): SDKHandle
Swift declaration
var rawValue: CInterop.Mode

The raw C mode.

set · iOS 27.0+

rawValue

TypeScript
setRawValue($self: FileMode, value: SDKHandle): void
Swift declaration
var rawValue: CInterop.Mode

The raw C mode.

Skipped declarations

No declarations were skipped in this snapshot.

All System types →