Skip to content
Browse files

2 fixes to directory processing

  • Loading branch information...
1 parent 9dbd610 commit 701d005a3bd1e61a2a5dc88cda64020a2cb21407 @joewalker joewalker committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dryice/index.js
View
4 lib/dryice/index.js
@@ -92,7 +92,7 @@ copy.sourceFactory = function(source, filters) {
if (typeof source === 'string') {
if (copy.isDirectory(source)) {
- return new copy.DirectorySource(source, filters);
+ return new copy.DirectorySource(source, null, null, filters);
}
else {
return new copy.FileSource(new Location('', source), filters);
@@ -225,7 +225,7 @@ copy.DirectorySource = function(root, filterOrInclude, exclude, filters) {
});
}
- if (typeof include === 'function') {
+ if (typeof filterOrInclude === 'function') {
this._searchFilter = filterOrInclude;
}
else {

0 comments on commit 701d005

Please sign in to comment.
Something went wrong with that request. Please try again.