Function utf8_path::normalize_path

source ·
pub fn normalize_path(path: impl AsRef<Utf8Path>) -> Result<Utf8PathBuf>
Expand description

Given a path with internal . and .., normalize out those path segments.

This does not consult the filesystem to follow symlinks, it only operates on the path components themselves.