pub fn canonicalize<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Like std::fs::canonicalize(), but on Windows it outputs the most compatible form of a path instead of UNC.
std::fs::canonicalize()