yuanchuan / node-watch

A wrapper and enhancements for fs.watch
https://npm.im/node-watch
MIT License
340 stars 44 forks source link

Catch fs.watch exceptions #125

Closed campersau closed 2 years ago

campersau commented 2 years ago

To test this I relied on the fact the the options are getting copied with Object.assign({}, options, {...}) so that I could delete the directory before fs.watch is called but after the is.directory / is.file checks.

Fixes https://github.com/yuanchuan/node-watch/issues/108

yuanchuan commented 2 years ago

Thank you