Don't throw exceptions from Directory.getEntries for non-files

Just don't create entry objects for them.
This commit is contained in:
Corey Johnson & Nathan Sobo
2013-03-21 15:28:56 -06:00
committed by Nathan Sobo
parent 2416ff19a4
commit bfd2667c51

View File

@@ -22,8 +22,6 @@ class Directory
directories.push(new Directory(path))
else if fs.isFile(path)
files.push(new File(path))
else
console.error "#{path} is neither a file nor a directory."
directories.concat(files)