path_normalizer 0.1.1

Lexically normalize paths in Rust without touching the filesystem.
Documentation
1
2
3
4
5
6
7
8
use path_normalizer::PathNormalizeExt;
use std::path::Path;

fn main() {
    let path = Path::new("foo/./bar/../baz");
    let normalized = path.normalize_path().unwrap();
    println!("Normalized: {}", normalized.display());
}