Skip to main content

canonicalize_safe

Function canonicalize_safe 

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

Canonicalize path and verify it stays within root. Returns the canonical path or a security error.