Expand description
Portable path resolution and display helpers.
Source documents and manifests spell relative paths with / (manifest
convention). These helpers resolve such paths to the platform separator
(resolve_relative, resolve_source_path) and render any path back
with forward slashes for user-facing output (display_path). Nothing
here touches the filesystem; these are pure path-string operations.
Enums§
- Path
Error - Why a portable,
/-separated path could not be resolved.
Functions§
- display_
path - Render a filesystem path for user-facing output with forward slashes on every platform.
- is_
plain_ 🔒name - Whether
segmentis a single portable filename component: it holds no platform separator and parses to exactly oneComponent::Normalequal to itself. - resolve_
relative - Join a portable,
/-separatedrelativepath ontobase, using the platform path separator throughout. - resolve_
source_ path - Resolve a portable,
/-separatedsrc_path(as written in a source file) relative to the directory containingsource_file.