This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

2 fixes to directory processing

  • Loading branch information...
joewalker committed Jan 5, 2012
1 parent 9dbd610 commit 701d005a3bd1e61a2a5dc88cda64020a2cb21407
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dryice/index.js
View
@@ -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.