Expand description
Path utility functions
Re-exports from vtcode-commons for backward compatibility.
Functionsยง
- canonicalize_
allow_ missing - Canonicalize a path, walking up to find the nearest existing ancestor for new files.
- canonicalize_
workspace - Canonicalize a path with fallback to the original path if canonicalization fails.
- ensure_
path_ within_ workspace - Ensure a candidate path is inside the workspace root after lexical normalization.
- normalize_
ascii_ identifier - Normalize identifiers to ASCII alphanumerics with lowercase output.
- normalize_
path - Normalize a path by resolving
.and..components lexically. - resolve_
workspace_ path - Resolve a path relative to a workspace root and ensure it stays within it.