Expand description
Filesystem primitives the lifecycle services share.
Hashing, guarded destination checks, and parent-creating writes — the mechanics only. Which destinations exist and what to do about a refusal is the installer’s and upgrader’s business.
Enums§
- Destination
Refusal - Why a destination cannot be touched.
Functions§
- check_
destination - Check that touching
destinationundertargetstays inside the target. - remove_
within - Remove a repository-relative file under a target, refusing a path that leaves it.
- sha256_
file - Hash a file’s bytes.
- write_
atomic - Write a file through a sibling temporary file and a rename, creating its parent directories.
- write_
file - Write a file, creating its parent directories.
- write_
within - Write a repository-relative destination under a target, refusing a path that leaves it.