MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unwatchDir

Method unwatchDir

src/sync/watcher.ts:625–635  ·  view source on GitHub ↗

Close and forget the watch for a directory that errored/was removed.

(dir: string)

Source from the content-addressed store, hash-verified

623
624 /** Close and forget the watch for a directory that errored/was removed. */
625 private unwatchDir(dir: string): void {
626 const w = this.dirWatchers.get(dir);
627 if (w) {
628 try {
629 w.close();
630 } catch {
631 /* already closed */
632 }
633 this.dirWatchers.delete(dir);
634 }
635 }
636
637 /** Our own dirs are always ignored, regardless of .gitignore. */
638 private isAlwaysIgnored(rel: string): boolean {

Callers 1

watchTreeMethod · 0.95

Calls 2

getMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected