Skip to main content

Module file_ops

Module file_ops 

Source

Structs§

WalkedEntry
One entry found while walking a directory tree.

Functions§

gather_metadata
Collects the metadata to preserve for an input file or directory. Fields that cannot be read (or do not exist on this platform) are simply absent.
stream_encrypt_directory
Streams a walked directory tree as an encrypted archive into a fresh output file. Memory stays bounded by the chunk size regardless of tree size. A partially written output is removed on failure.
stream_encrypt_file
Streams the input file through the sealer into a fresh output file: header first, then one encrypted chunk at a time, with memory bounded by the chunk size. A partially written output is removed on failure.
walk_directory
Recursively walks a directory in sorted order, listing directories before their contents. Entries that cannot be archived (symlinks, special files, non-UTF-8 or backslash-containing names) are skipped; the count of skipped entries is returned alongside.