Skip to main content

normalize

Function normalize 

Source
pub fn normalize(path: impl AsRef<Path>) -> PathBuf
Expand description

Lexically normalize a relative path: drop . components and fold parent/.. pairs. Leading .. components (escaping the workspace root) are kept — the caller decides whether that is an error.