* 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.
()
| 140 | * to pick the recursive vs per-directory strategy. |
| 141 | */ |
| 142 | function supportsRecursiveWatch(): boolean { |
| 143 | return process.platform === 'darwin' || process.platform === 'win32'; |
| 144 | } |
| 145 | |
| 146 | function isDirectory(p: string): boolean { |
| 147 | try { |
no outgoing calls
no test coverage detected