Skip to main content

Module local_file

Module local_file 

Source
Expand description

Private local-file machinery used by storage and store-directory capabilities.

Structs§

AtomicStagedFile
A provider download path that becomes visible at its destination only after the caller has verified the completed file.
OpenFile
One open file handle serving positioned reads of a local plaintext file.
PublishedAtomicFile
A staged file that has been installed at its destination while the caller’s durable transaction is still deciding whether that installation commits.

Enums§

ByteStreamWriteError
CommitNewFileError
StreamWriteError

Constants§

TEMP_BLOB_PREFIX
The filename prefix an atomic blob write gives its in-progress temp sibling (.tmp.<uuid>) before the owning durability policy and rename make it the committed destination.

Traits§

PlaintextChunkReader

Functions§

file_facts
Size and SHA-256 digest of the file at path, streamed. The one filesystem primitive for computing a file’s identity facts; callers hold the protocol reference and compare.
file_facts_with_progress
Size and SHA-256 digest of the file at path, reporting cumulative bytes consumed after each read.
file_len