pub fn validate_path(path: &str) -> Result<(), Error>
Validates that a path doesn’t contain path traversal attacks.