Permalink
Browse files

make failing watch-test pass

  • Loading branch information...
1 parent c1c4433 commit 80c063a7b17a63ece2eee0fbf644286f3cce5856 @guybrush guybrush committed Aug 3, 2011
Showing with 5 additions and 2 deletions.
  1. +5 −2 index.js
View
7 index.js 100644 → 100755
@@ -48,8 +48,11 @@ module.exports = function (target, dir, optsOrEx) {
fs.readdir(file, function (err, xs) {
var rescan = false;
xs.forEach(function (x) {
- var f = path.resolve(dir, x);
- if (files.indexOf(f) < 0) {
+ var f = path.resolve(file, x);
+ if (fs.statSync(f).isDirectory()) {
+ findit.sync(f, finder);
+ }
+ else if (files.indexOf(f) < 0) {
files.push(f);
include(files);
}

0 comments on commit 80c063a

Please sign in to comment.