pub fn canonicalize_path(path: &Path) -> Result<PathBuf, PathValidationError>Expand description
Canonicalize a path using std::fs::canonicalize.
This resolves all symlinks, .., and . components to produce an absolute path.
Returns an error if the path doesn’t exist or cannot be accessed.
§Arguments
path- Path to canonicalize
§Returns
Canonicalized absolute path, or error if path cannot be canonicalized