Skip to content

Commit

Permalink
Also pass path to exclude function
Browse files Browse the repository at this point in the history
Closes #46
  • Loading branch information
papb committed Dec 15, 2020
1 parent 5c2f713 commit 60f13e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/fns.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports.joinPath = function(filename) {
/** WALK DIR */
module.exports.walkDirExclude = function(exclude) {
return function(walk, state, path, dir, currentDepth, callback) {
if (!exclude(dir)) {
if (!exclude(dir, path)) {
module.exports.walkDir(walk, state, path, dir, currentDepth, callback);
}
};
Expand Down

0 comments on commit 60f13e1

Please sign in to comment.