Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Snapshot · Oct 24, 2026 · Frozen documentation

PosixFileMode

Owns the twelve POSIX permission/special bits as semantic values. Owner/Group/Other describe mode groups; they are not a Windows ACL or a check of the current caller's access. Editing this value changes no native object. It allocates nothing, owns no external state and requires synchronization for shared mutation. Special bits retain their reported platform meaning.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.fs

import std.fs;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

PosixFileMode

pub struct PosixFileMode

Owns the twelve POSIX permission/special bits as semantic values. Owner/Group/Other describe mode groups; they are not a Windows ACL or a check of the current caller's access. Editing this value changes no native object. It allocates nothing, owns no external state and requires synchronization for shared mutation. Special bits retain their reported platform meaning.

pub Owner: PosixAccess;

pub Owner: PosixAccess;

Mode permissions for the owning user.

pub Group: PosixAccess;

pub Group: PosixAccess;

Mode permissions for the owning group.

pub Other: PosixAccess;

pub Other: PosixAccess;

Mode permissions for other users.

pub SetUserId: bool;

pub SetUserId: bool;

Reported set-user-ID special bit.

pub SetGroupId: bool;

pub SetGroupId: bool;

Reported set-group-ID special bit.

pub Sticky: bool;

pub Sticky: bool;

Reported sticky special bit, often restricting directory removal.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library