Prune paths that are files

This avoids an extra call to isDirectory for each path
that has already been determined to be a file and
therefore not a directory.
This commit is contained in:
Kevin Sawicki
2012-10-08 12:09:55 -07:00
parent 7ab088df8b
commit 7fc362c801

View File

@@ -55,6 +55,7 @@ class Project
if @ignorePath(path)
prune()
else if fs.isFile(path)
prune()
filePaths.push @relativize(path)
deferred.resolve filePaths