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§
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 underrootafter lexical normalization. Returns the normalized absolute path on success.