Function validate_no_traversal
Source pub fn validate_no_traversal(path: &Path) -> Result<()>
Expand description
Validates that a path doesn’t contain dangerous components.
§Arguments
path - The path to validate
§Returns
Ok(()) if the path is safe
§Errors
Returns an error if the path contains dangerous components like:
- Parent directory references (..)