normalize_under_root

Function normalize_under_root 

Source
pub fn normalize_under_root(root: &Path, candidate: &Path) -> Result<PathBuf>
Expand description

Normalize a user-supplied path and ensure it stays within an allowed root. Reject absolute paths and any that escape via ...