(&self, path: &Path)
| 153 | } |
| 154 | |
| 155 | fn matches_exclude_patterns(&self, path: &Path) -> bool { |
| 156 | // Normalize to forward slashes for consistent cross-platform glob matching |
| 157 | let path_str = path.to_string_lossy().replace('\\', "/"); |
| 158 | self.config.exclude_patterns.iter().any(|pattern| { |
| 159 | glob::Pattern::new(pattern) |
| 160 | .map(|p| p.matches(&path_str)) |
| 161 | .unwrap_or(false) |
| 162 | }) |
| 163 | } |
| 164 | |
| 165 | async fn search_simple( |
| 166 | &self, |