We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filter
1 parent 4817e65 commit 2f34c99Copy full SHA for 2f34c99
README.md
@@ -51,7 +51,7 @@ Both async and sync take a filter function as the second argument, to ignore fil
51
var emptyDir = require('empty-dir');
52
53
function filter(filepath) {
54
- return !/(Thumbs\.db|\.DS_Store)$/i.test(filepath);
+ return /(Thumbs\.db|\.DS_Store)$/i.test(filepath);
55
}
56
57
emptyDir('./', filter, function(err, isEmpty) {
0 commit comments