Skip to main content

canonicalize

Function canonicalize 

Source
pub fn canonicalize(path: &Path) -> Result<PathBuf>
Expand description

Canonicalize a path through the host filesystem.

Prefer a confined resolver for untrusted relative paths.

ยงErrors

Returns a contextual error when the path cannot be resolved.