MCPcopy Create free account
hub / github.com/AI45Lab/Code / matches_exclude_patterns

Method matches_exclude_patterns

core/src/context/fs_provider.rs:155–163  ·  view source on GitHub ↗
(&self, path: &Path)

Source from the content-addressed store, hash-verified

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,

Callers 1

index_filesMethod · 0.80

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected