Skip to main content

normalize_relative_path

Function normalize_relative_path 

Source
pub fn normalize_relative_path(path: &str) -> String
Expand description

Normalize a relative path by resolving . and .. components using Path APIs. Does not touch the filesystem. Always returns forward-slash separated paths. Preserves leading .. that escape above the root — these indicate graph escape.