[DAEMON-6] appcd: Filesystem watcher
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2016-05-12T15:29:18.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | node-appc |
| Labels | n/a |
| Reporter | Chris Barber |
| Assignee | Chris Barber |
| Created | 2016-05-07T06:27:59.000+0000 |
| Updated | 2017-06-19T15:46:38.000+0000 |
Description
androidlib, ioslib, jdklib, and windowslib need a filesystem monitoring library that can be notified when a specific path changes.
Node has a built-in
fs.watch() function which works fine on Linux and Windows, but doesn't work well on OS X where it doesn't report the correct file path. This can be fixed by using the fsevents module.
The chokidar module comes close to solving this need, but I discovered two blocking bugs: one with watching paths that do not exist and one with nested paths. It also currently has 39 open issues, some of which are a little scary sounding. Additionally, chokidar uses readdirp which apparently has performance issues due to all of the file stating.
No comments