pub fn validate_path(path: &str) -> Result<PathBuf>
Validate a user-provided path with the repo’s path safety rules.