Skip to main content

Module path_safety

Module path_safety 

Source
Expand description

Workspace path jail validation. Workspace path jail validation and symlink safety checks.

Functions§

check_symlink
Return an error if the path is a symbolic link.
soft_canonicalize
Resolve . and .. components without touching the filesystem.
validate_path
Validate that a path is inside the workspace and is not a symlink.
validate_path_with_symlink
Validate a path with configurable symlink policy.