pub fn canonicalize<P: AsRef<Path>>(path: P) -> Result<PathBuf>
Returns the canonical, absolute form of a path with all intermediate components normalized and symbolic links resolved.
Wrapper for fs::canonicalize.
fs::canonicalize