Skip to main content

is_lexically_inside

Function is_lexically_inside 

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

Returns true if path is lexically equal to or beneath root.

Both paths should already be normalized for reliable results. Prefer ensure_inside which normalizes first.

ยงFilesystem access

No.