pub fn normalize(path: &Path) -> PathBuf
Lexically normalizes a path: drops . and resolves .. against earlier components without touching the file system. .. above a root is dropped.
.
..