pub fn canonical(pathname: &str) -> String
Canonicalize a pathname by simplifying redundant separators, . and .. components. Matches Perl’s pathname_canonical from Pathname.pm.
.
..