Skip to main content

normalize_lexical

Function normalize_lexical 

Source
pub fn normalize_lexical(path: &Path) -> PathBuf
Expand description

Lexically collapse . and .. components in path without touching the filesystem. Leading .. components (that would escape the root) are preserved verbatim, matching Path::join intuitions for relative roots.