Mode
Unix st_mode bits: permissions, the set-user-ID/set-group-ID/sticky bits,
and the file type.
Example
Reading a file's mode and applying it elsewhere:
Inherits from: Iterable[ModeBit]
Implements: std.FlagSet[ModeBit]
Class Methods
from_int value -> Mode
Constructs a mode from a raw st_mode value, preserving unknown bits.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Int |
Raw mode bits. |
Example
Fields
group @ security.unix.PermissionGroup permissions.
int @ IntThe raw
st_modevalue, including the file type bits.Mask with
0o7777for the permission bits alone.other @ security.unix.PermissionPermissions for everyone else.
owner @ security.unix.PermissionOwner permissions.