Expand description
URI-aware path operations.
Mirrors Python openjd.expr._uri_path. When a path value contains a URI
(scheme://authority/path), these functions handle path operations instead of
std::path. The scheme+authority prefix is preserved as an opaque root.
Structs§
- UriParts
- Parsed URI: authority (
scheme://host) and path segments.
Functions§
- from_
parts - Reconstruct a URI from parts (first element is
scheme://authority). - is_uri
- Return
trueifpathhas ascheme://prefix. - join
- Join a URI path with child segments.
- name
- Final component of a URI path (empty string if no path segments).
- parent
- Parent of a URI path.
- parse
- Parse a URI into authority + path parts, or
Noneif not a URI. - parts
- Split into parts: first element is
scheme://authority, rest are path segments. - stem
- Final component without the last extension.
- suffix
- File extension of the final component (including the dot), or empty string.
- suffixes
- All file extensions of the final component.