MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / _should_trigger

Method _should_trigger

core/background.py:315–318  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

313 self._debounce = 0.5 # 500ms debounce
314
315 def _should_trigger(self, path: str) -> bool:
316 if not self.patterns:
317 return True
318 return any(Path(path).match(p) for p in self.patterns)
319
320 def _debounced_callback(self, event):
321 now = time.time()

Callers 3

on_modifiedMethod · 0.95
on_createdMethod · 0.95
on_deletedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected