Expand description
Workspace-bound path validation and traversal prevention.
This crate centralizes path-boundary checks used by tooling that accepts user-provided file paths (for example LSP/DAP requests).
Enums§
- Workspace
Path Error - Path validation errors for workspace-bound operations.
Functions§
- build_
completion_ path - Build completion path string and append trailing slash for directories.
- is_
hidden_ or_ forbidden_ entry_ name - Check whether a filename should be skipped during file completion traversal.
- is_
safe_ completion_ filename - Validate filename safety for completion entries.
- resolve_
completion_ base_ directory - Resolve a directory used for file completion traversal.
- sanitize_
completion_ path_ input - Sanitize and normalize user-provided completion path input.
- split_
completion_ path_ components - Split sanitized completion path into
(directory_part, file_prefix). - validate_
workspace_ path - Validate and normalize a path so it remains within
workspace_root.