Skip to main content

Module fs

Module fs 

Source
Expand description

Exposes the fs runtime module.

§Examples

ⓘ
use pharos_native::runtime::fs;

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.