Expand description
Lexical path handling.
Logical paths are interpreted relative to a source or output root, never passed directly to the host OS.
Functionsยง
- ancestor_
dirs - Every ancestor directory of a logical path, shallowest first, excluding
/. - has_
symlinked_ ancestor - Whether any component between
rootandpathis a symlink. - hex
- Render bytes as lowercase hex (used for digests).
- join_
under - Join a logical absolute path onto a real directory, refusing anything that would land outside of it.
- logical_
parent - Absolute parent directory of a logical path (
/for top-level entries). - normalize_
absolute - Normalize a path into an absolute logical path.