Skip to main content

is_within

Function is_within 

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

Returns whether path is the same as or below root by path component.

Parent traversal fails closed. An empty or current-directory relative root contains relative descendants, but never an absolute or drive-qualified path.