Skip to main content

Module paths

Module paths 

Source
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 root and path is 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.