diff --git a/lib/watch.js b/lib/watch.js index 1758084..6fe04ff 100644 --- a/lib/watch.js +++ b/lib/watch.js @@ -81,25 +81,6 @@ function getMessages(cache) { } } - // Prevent redundant event for its parent when creating file/directory. - // The operation is kinda expensive so only be triggered under Windows. - // https://github.com/yuanchuan/node-watch/issues/79 - if (is.windows()) { - var parents = filtered.map(function(n) { - return path.parse(n).dir; - }); - filtered = filtered.filter(function(n) { - // Skip on removal - if (!is.exists(n)) { - return true; - } - // Ignore the parent directory - return !parents.some(function(m) { - return is.samePath(n, m); - }); - }); - } - return composeMessage(filtered); }