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

Function supportsRecursiveWatch

src/sync/watcher.ts:142–144  ·  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

140 * to pick the recursive vs per-directory strategy.
141 */
142function supportsRecursiveWatch(): boolean {
143 return process.platform === 'darwin' || process.platform === 'win32';
144}
145
146function isDirectory(p: string): boolean {
147 try {

Callers 2

startMethod · 0.85
refreshWatchTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected