mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't throw exceptions from Directory.getEntries for non-files
Just don't create entry objects for them.
This commit is contained in:
committed by
Nathan Sobo
parent
2416ff19a4
commit
bfd2667c51
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user