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

Method start

core/background.py:258–269  ·  view source on GitHub ↗

Start the file watch observer.

(self)

Source from the content-addressed store, hash-verified

256 self._running = False
257
258 def start(self):
259 """Start the file watch observer."""
260 try:
261 from watchdog.observers import Observer
262 self._observer = Observer()
263 self._observer.start()
264 self._running = True
265 info("FileWatch: observer started")
266 except ImportError:
267 warning("FileWatch: watchdog not installed, file watches disabled")
268 except Exception as e:
269 error(f"FileWatch: failed to start observer: {e}")
270
271 def stop(self):
272 """Stop the file watch observer."""

Callers

nothing calls this directly

Calls 3

infoFunction · 0.90
warningFunction · 0.90
errorFunction · 0.90

Tested by

no test coverage detected