Skip to main content

Module paths

Module paths 

Source
Expand description

Shared path helpers used by both schema-tier validation and the scoped file browser. Single source of truth for “lexically normalize a path” and “resolve a relative input under a fixed root with no escape”.

Structs§

RootEscapeError

Functions§

normalize_lexical
Resolve . and .. components lexically — never touches the filesystem. Sufficient for “stays inside <root>” reasoning where the path may not yet exist.
resolve_under
Resolve raw (interpreted as relative-to-root unless absolute) and assert the result stays under root after lexical normalization. Returns the normalized absolute path on success.