Skip to main content

normalize_path

Function normalize_path 

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

Normalize a virtual filesystem path by resolving . and .. components.

Returns a canonical absolute path. If the result would be empty (e.g., from /../..), returns /.