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

PosixFileMetadata

Owns explicit POSIX identity, ownership and mode metadata. Numeric IDs are scoped to the provider/host namespace; no account lookup is performed. Device/Inode identify an object during its native lifetime, not a globally unique identity after deletion/reuse or across providers. This value retains no resource and allocates nothing. Shared mutation needs synchronization.

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.

PosixFileMetadata

pub struct PosixFileMetadata

Owns explicit POSIX identity, ownership and mode metadata. Numeric IDs are scoped to the provider/host namespace; no account lookup is performed. Device/Inode identify an object during its native lifetime, not a globally unique identity after deletion/reuse or across providers. This value retains no resource and allocates nothing. Shared mutation needs synchronization.

PosixFileMetadata.Device

pub Device: u64;

Native device identity, scoped to this provider.

PosixFileMetadata.Inode

pub Inode: u64;

Native inode identity, reusable after removal.

PosixFileMetadata.UserId

pub UserId: u64;

Numeric owner identity without name-service lookup.

PosixFileMetadata.GroupId

pub GroupId: u64;

Numeric group identity without name-service lookup.

PosixFileMetadata.Mode

pub Mode: PosixFileMode;

POSIX mode snapshot, independently of any ACL.

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