Expand description
Reading and writing filesystem trees to/from disk.
This module provides functionality to read filesystem structures from disk into composefs tree representations and write them back, including handling of hardlinks, extended attributes, and repository integration.
StructsΒ§
- Filesystem
Reader - Helper for reading filesystem trees from disk into composefs representation.
FunctionsΒ§
- read_
file - Read the contents of a file.
- read_
filesystem - Load a filesystem tree from the given path. A repository may be provided; if it is, then all files found in the filesystem are copied in.
- set_
file_ πcontents - Attempt to use O_TMPFILE + rename to atomically set file contents. Will fall back to a non-atomic write if the target doesnβt support O_TMPFILE.
- write_
directory π - write_
directory_ πcontents - write_
leaf π - write_
to_ path - Writes a directory tree from composefs representation to a filesystem path.