Skip to main content

validate_path_within

Function validate_path_within 

Source
pub fn validate_path_within(target: &Path, base_dir: &Path) -> Result<PathBuf>
Expand description

Canonicalize both paths and confirm target is a descendant of base_dir.