Reputation: 614
https://nodejs.org/api/fs.html#fs_caveats states that fs.watch(filename[, options][, listener])'s recursive option is only available to OS X and Windows.
fs.watch(filename[, options][, listener])
So, how could it be implemented on Linux?
Upvotes: 9
Views: 6975
Reputation: 1508
Use chokidar Found answer in this thread
Upvotes: 4