347486 (1) [Avatar] Offline
#1
I was following the chapter 2.8, and I found some problems with the file watcher example.
I mean, the example is 100% clear, but when I implement and run it, the results are different than expected.

If I drop a file in the folder under watch, a 'rename' event is triggered, instead of a 'change', an so nothing happens.
I suspect that fs.watch may have different behaviour based on the underlying OS...

Considering also that the method is marked as unstable in the docs, maybe a different example would be more effective!
alex.young (10) [Avatar] Offline
#2
The API could have changed since the example was written. I'll make a note to check on it.