Skip to main content

secure_path

Function secure_path 

Source
pub fn secure_path(workspace_root: &Path, user_path: &Path) -> Result<PathBuf>
Expand description

Return a canonicalised absolute path that is guaranteed to reside inside the provided workspace_root. If the path is outside the workspace an error is returned.