pub fn normalize_saturating<'a>( path: Cow<'a, Path>, current_dir: &Path, ) -> Cow<'a, Path>
Like normalize(), but treats .. components beyond the filesystem root as no-ops.
normalize()
..