Function uucore::fs::canonicalize

source ·
pub fn canonicalize<P: AsRef<Path>>(
    original: P,
    miss_mode: MissingHandling,
    res_mode: ResolveMode
) -> IOResult<PathBuf>
Expand description

Return the canonical, absolute form of a path.

This function is a generalization of std::fs::canonicalize that allows controlling how symbolic links are resolved and how to deal with missing components. It returns the canonical, absolute form of a path. The miss_mode parameter controls how missing path elements are handled

The res_mode parameter controls how symbolic links are resolved: