Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

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.

PosixFileMode.Owner

pub Owner: PosixAccess;

Mode permissions for the owning user.

PosixFileMode.Group

pub Group: PosixAccess;

Mode permissions for the owning group.

PosixFileMode.Other

pub Other: PosixAccess;

Mode permissions for other users.

PosixFileMode.SetUserId

pub SetUserId: bool;

Reported set-user-ID special bit.

PosixFileMode.SetGroupId

pub SetGroupId: bool;

Reported set-group-ID special bit.

PosixFileMode.Sticky

pub Sticky: bool;

Reported sticky special bit, often restricting directory removal.

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