Skip to main content

normalize_path

Function normalize_path 

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

Normalize a path by resolving . and .. components lexically. If the path is relative, it is first made absolute against the given root.

This is purely lexical — no filesystem access, no symlink resolution.