Skip to main content

normalize_path

Function normalize_path 

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

Normalizes a path by removing redundant . and resolving .. components lexically. A .. after a normal component removes it; a leading .. of a relative path is kept, a .. right after the root of an absolute path is dropped. Symlinks are not consulted: callers that need filesystem identity resolve the path first.