I am using node-hound as a directory watcher.
hound = require('hound');
watcher = hound.watch('/dir');
watcher.on('create', function(file) {
console.log('hello');
});
watcher.on('change', function(file) {
console.log('hello');
});
How can I bind together the create
and the change
events assuming that the callback function will perform the exact same task? Is that possible?
via Radu Tutunaru
No comments:
Post a Comment