Function uucore::fs::normalize_path
source · pub fn normalize_path(path: &Path) -> PathBufExpand description
Normalize a path by removing relative information
For example, convert ‘bar/../foo/bar.txt’ => ‘foo/bar.txt’
copied from <https://github.com/rust-lang/cargo/blob/2e4cfc2b7d43328b207879228a2ca7d427d188bb/src/cargo/util/paths.rs#L65-L90>
both projects are MIT <https://github.com/rust-lang/cargo/blob/master/LICENSE-MIT>
for std impl progress see rfc <https://github.com/rust-lang/rfcs/issues/2208>
replace this once that lands