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

Function supportsRecursiveWatch

src/sync/watcher.ts:126–128  ·  view source on GitHub ↗

* Native recursive `fs.watch` is only reliable on macOS and Windows; on Linux * (and AIX) it throws `ERR_FEATURE_UNAVAILABLE_ON_PLATFORM`. We branch on this * to pick the recursive vs per-directory strategy.

()

Source from the content-addressed store, hash-verified

124 * to pick the recursive vs per-directory strategy.
125 */
126function supportsRecursiveWatch(): boolean {
127 return process.platform === 'darwin' || process.platform === 'win32';
128}
129
130/**
131 * Indirection over `fs.watch` so tests can inject a fake that throws or emits

Callers 1

startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected