realpath-rs 0.2.0

A cross-platform Rust equivalent of python3's `os.path.realpath`
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::*; 
use std::path::PathBuf;

#[test]
#[cfg(windows)]

fn test_win(){
    let src = PathBuf::from(r"\\?\C:\Users\Public\Documents\");
    let dest : PathBuf = realpath(&src).unwrap(); 
    println!("{}" , dest.display());
}