Skip to main content

Module uri_path

Module uri_path 

Source
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 true if path has a scheme:// 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 None if 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.