bevry / watchr

Better file system watching for Node.js. Provides a normalised API the file watching APIs of different node versions, nested/recursive file and directory watching, and accurate detailed events for file/directory changes, deletions and creations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It doesn't work on linux.

dzek69 opened this issue · comments

I was looking for better alternative to node-watch (as it doesn't differenate create from update).

So I've implemented basic example on my folder, where ffmpeg constantly saves a stream (so every 500ms a file is modified, every 60 seconds new one is created). And this package can't detect any change there. I've touched a file in this folder - still nothing.

However - it detects file removal without a problem!

When left for a while - it detected a single change from one of files ffmpeg is saving to (in the middle of the process).

Any suggestions what can be wrong and how to fix it?

Can confirm that on Linux this tool appears to not work. It says it successfully starts watching but then no events will ever be raised.

Use chokidar, the best watching solution for node.js
This one seems dead (no answer in 7 months), I've tested many and most of them are buggy/incomplete/etc. Chokidar seems like the only reliable choice.

If it died, it'll be the Node.js core that killed it. I'll look into a maintenance release soon #342

Otherwise I'd suggest watchman #91