Skip to main content

normalize_path

Function normalize_path 

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

Normalize a path by resolving . and .. components without touching the filesystem. This is needed because canonicalize() requires the path to exist, but we want to resolve paths that don’t exist yet.