I don't understand coffeescript code very well but in a quick look I see an
error. On windows, if you're watching 2 files: f and f1, and you modify f,
both watchers receive a change event. For example:
./
|- f
`- f1
var fs = require ("fs");
fs.watch ("f", function (event, entry){
console.log (1, event, entry)
});
fs.watch ("f1", function (event, entry){
console.log (2, event, entry)
});
fs.createWriteStream ("f").end ("asd");
You get (duplicates included):
1 'change' 'f'
2 'change' 'f1'
1 'change' 'f'
2 'change' 'f1'
When in fact, you should get (duplicates included):
1 'change' 'f'
1 'change' 'f'
You cannot watch a file, you have to watch its parent directory and
chokidar is not doing that.
El lunes, 29 de abril de 2013 16:10:52 UTC+2, mgutz escribió:
>
> Chokidar is really solid and is cross platform. I've used it heavily on
> Debian, Windows and Mac.
>
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.