Ensure only file events are acted upon

This commit is contained in:
Elan Shanker 2014-12-08 17:55:54 -05:00
parent 6f6d9bd5a8
commit 5e67dfbd9e

View File

@ -117,8 +117,10 @@ module.exports = function (commander, filenames) {
persistent: true,
ignoreInitial: true
}).on("all", function (type, filename) {
console.log(type, filename);
walk();
if (type === "add" || type === "change" || type === "unlink" ) {
console.log(type, filename);
walk();
}
});
}
};