watch
Advanced tools
Comparing version 0.11.0 to 0.12.0
@@ -55,3 +55,3 @@ // Copyright 2010-2011 Mikeal Rogers | ||
callback.files[f] = stat; | ||
if (stat.isDirectory()) walk(f, options, callback); | ||
if (stat.isDirectory() && !(options.ignoreDirectoryPattern && options.ignoreDirectoryPattern.test(f))) walk(f, options, callback); | ||
done = callback.pending === 0; | ||
@@ -88,2 +88,3 @@ if (done) callback(null, callback.files); | ||
fs.stat(file, function (err, stat) { | ||
if (options.filter && !options.filter(file, stat)) return; | ||
callback(file, stat, null); | ||
@@ -90,0 +91,0 @@ files[file] = stat; |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.11.0", | ||
"version": "0.12.0", | ||
"homepage": "https://github.com/mikeal/watch", | ||
@@ -13,0 +13,0 @@ "bugs": { |
Sorry, the diff of this file is not supported yet
20226
204
82