Skip to main content

ensure_inside

Function ensure_inside 

Source
fn ensure_inside(root: &Path, path: &Path, orig: &Path) -> Result<()>
Expand description

Fails if the nearest existing ancestor of path resolves outside root, for example through a linked directory.