pub fn is_within(path: &Path, root: &Path) -> boolExpand 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.