(dirPath: string)
| 36 | } |
| 37 | |
| 38 | function isValidDirectory(dirPath: string): boolean { |
| 39 | try { |
| 40 | return existsSync(dirPath) && statSync(dirPath).isDirectory(); |
| 41 | } catch { |
| 42 | return false; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | function broadcast(entry: WatchEntry, reason: FileBrowserChangeEvent["reason"]): void { |
| 47 | for (const [subscriber, clientDirPath] of entry.subscribers) { |
no outgoing calls
no test coverage detected