Skip to content

Commit

Permalink
Changing excludedDirectories to work like excludedFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeder committed Jun 3, 2015
1 parent 75fa2c2 commit bd31f86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions VersionedFileSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,8 @@ util._extend(VersionedFileSystem.prototype, d.bindMethods({
ended = false;
find.on('directory', function (dir, stat, stop) {
var relPath = path.relative(root, dir);
if (self.isExcludedDir(relPath)) return stop();
result.directories.push({path: relPath, stat: stat});
var base = path.basename(relPath);
if (self.isExcludedDir(base)) stop();
});
find.on('file', function (file, stat) {
var relPath = path.relative(root, file);
Expand Down

0 comments on commit bd31f86

Please sign in to comment.