pub fn normalize(path: &Path) -> PathBuf
Normalize a path by removing . components and resolving .. components. Unlike canonicalize(), this doesn’t require the path to exist on disk.
.
..
canonicalize()