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

FileAttributeWork

Captures arguments without allocation, I/O or scheduling.

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.

pub init(Token: usize, Name: readonly byte[])

pub init(Token: usize, Name: readonly byte[])

Captures arguments without allocation, I/O or scheduling. Token: Held-object authority; receiver remains live until completion. Name: Borrowed exact bytes retained through completion.

Invoke

pub readonly fn Invoke() -> Result<Vector<byte>?, IoError>

Runs the complete operation on the bounded blocking worker. Return: Exact portable result, including missing/support/denial distinctions.

pub init(Token: usize, Name: readonly byte[], Value: readonly byte[], Mode: ExtendedAttributeWriteMode)

pub init(Token: usize, Name: readonly byte[], Value: readonly byte[], Mode: ExtendedAttributeWriteMode)

Captures arguments without allocation, I/O or scheduling. Token: Held-object authority; receiver remains live until completion. Name: Borrowed exact bytes retained through completion. Value: Borrowed exact bytes retained through completion. Mode: Explicit mutation policy.

Invoke

pub readonly fn Invoke() -> Result<void, IoError>

Runs the complete operation on the bounded blocking worker. Return: Exact portable result, including missing/support/denial distinctions.

pub init(Token: usize, Name: readonly byte[])

pub init(Token: usize, Name: readonly byte[])

Captures arguments without allocation, I/O or scheduling. Token: Held-object authority; receiver remains live until completion. Name: Borrowed exact bytes retained through completion.

Invoke

pub readonly fn Invoke() -> Result<void, IoError>

Runs the complete operation on the bounded blocking worker. Return: Exact portable result, including missing/support/denial distinctions.

Create

pub static fn Create(Token: usize) -> FileDiscoverExtendedAttributeNamesWork

Captures arguments without allocation, I/O or scheduling. Token: Held-object authority; receiver remains live until completion. Return: Independent copied worker arguments without scheduling or I/O.

Invoke

pub readonly fn Invoke() -> Result<Vector<Vector<byte>>, IoError>

Runs the complete operation on the bounded blocking worker. Return: Exact portable result, including missing/support/denial distinctions.

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