Function cap_primitives::fs::canonicalize
source · pub fn canonicalize(start: &File, path: &Path) -> Result<PathBuf>
Expand description
Canonicalize the given path, ensuring that the resolution of the path never
escapes the directory tree rooted at start
.