Skip to main content

canonical

Function canonical 

Source
pub fn canonical(pathname: &str) -> String
Expand description

Canonicalize a pathname by simplifying redundant separators, . and .. components. Matches Perl’s pathname_canonical from Pathname.pm.