pub fn opens_inside(
path: impl AsRef<Path>,
dir: impl AsRef<Path>,
) -> Option<bool>Expand description
Whether the existing path, as the system opens it (every link followed, a link before a .. first), lies in the
existing directory dir; None when either is missing. Both are canonicalized by std, so on Windows both keep
the verbatim prefix canonicalize drops only under 260 characters, and a long path compares like a short one.