pub fn normalize_dot_segments(relative: &str) -> String
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).
os.path.normpath
.
..