pub fn is_path_excluded(path: &Path, exclude_patterns: &[Pattern]) -> bool
Check if a path should be excluded based on a list of glob patterns.