diff --git a/src/app/project.coffee b/src/app/project.coffee index 5e7a87cac..772b4279a 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -55,6 +55,7 @@ class Project if @ignorePath(path) prune() else if fs.isFile(path) + prune() filePaths.push @relativize(path) deferred.resolve filePaths diff --git a/src/stdlib/fs.coffee b/src/stdlib/fs.coffee index 839d6f0a1..33d4872b4 100644 --- a/src/stdlib/fs.coffee +++ b/src/stdlib/fs.coffee @@ -109,7 +109,7 @@ module.exports = for path in @list(rootPath) recurse = true fn(path, prune) - @traverseTree(path, fn) if @isDirectory(path) and recurse + @traverseTree(path, fn) if recurse and @isDirectory(path) lastModified: (path) -> $native.lastModified(path)