Expand description
Exposes the fs runtime module.
§Examples
ⓘ
use pharos_native::runtime::fs;§Related
crate::runtimefor sibling modules in the same crate.
Constants§
- PRIVATE_
FILE_ MODE - Default private runtime-state mode on Unix hosts.
Functions§
- append_
file_ within - Appends bytes to a regular file below an explicit capability root.
- append_
json_ record_ once - Writes a local JSONL outbox delivery once across retries and processes. A separate OS-locked companion survives atomic destination replacement. Both reading and replacement are bounded to 64 MiB; incomplete records fail closed instead of losing existing output or duplicating a delivery.
- ensure_
directory - Ensures directory.
- write_
binary_ file - Writes bytes using the destination directory as the least-authority capability root.
- write_
file_ within - Writes bytes below an explicit capability root through durable atomic replacement.
- write_
text_ file - Writes a text document through durable atomic replacement.