pub fn canonicalize_path(path: &Path) -> Result<PathBuf>
Securely canonicalize a path with validation