Skip to main content

normalize_dot_segments

Function normalize_dot_segments 

Source
pub fn normalize_dot_segments(relative: &str) -> String
Expand description

os.path.normpath over a posix-separated relative path: . and inner .. collapse; a leading .. stays and walks out of the tree (a path that simply will not exist).