Skip to main content

normalize_path

Function normalize_path 

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

Normalize a path by collapsing . and .. components without touching the filesystem.

Unlike canonicalize(), this works on paths that don’t exist yet.