pub fn is_within(child: &Path, parent: &Path) -> bool
Whether child is parent or lives under it, lexically.
child
parent
Used for containment questions about paths that may not exist yet, where canonicalize cannot be asked.
canonicalize