Skip to main content

Module paths

Module paths 

Source

Functions§

validate_non_root_listing_path
Validates that a directory-listing request targets a safe path. Blocks empty paths, absent paths, and absolute filesystem root /, but allows . (workspace root) — loop detection and max_items caps handle the “infinite loops” concern that originally motivated blocking root-listing.
validate_path_safety
Validates that a path is safe to use. Re-exported from vtcode-commons for tool-specific use cases.