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

Function isInotifyWatchExhaustion

src/sync/watcher.ts:117–119  ·  view source on GitHub ↗

* True when an error is Linux inotify *watch-count* exhaustion. `fs.watch` * surfaces a hit `fs.inotify.max_user_watches` as ENOSPC ("no space" = no watch * descriptors left, NOT disk space). This only arises on the Linux * per-directory path; it is non-fatal (raise the limit and partial watching

(err: unknown)

Source from the content-addressed store, hash-verified

115 * keeps working), so it warns rather than degrading.
116 */
117function isInotifyWatchExhaustion(err: unknown): boolean {
118 return (err as NodeJS.ErrnoException | undefined)?.code === 'ENOSPC';
119}
120
121/**
122 * Native recursive `fs.watch` is only reliable on macOS and Windows; on Linux

Callers 1

watchTreeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected