Skip to main content

path_within_root

Function path_within_root 

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

Check that path is within root after canonicalization. Rejects symlinks that escape the root directory.