Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Both async and sync take a filter function as the second argument, to ignore fil
var emptyDir = require('empty-dir');

function filter(filepath) {
return !/(Thumbs\.db|\.DS_Store)$/i.test(filepath);
return /(Thumbs\.db|\.DS_Store)$/i.test(filepath);
}

emptyDir('./', filter, function(err, isEmpty) {
Expand Down