mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Directory entries can only be files or other directories.
Does not handle file like broken symlinks for now
This commit is contained in:
@@ -18,8 +18,11 @@ class Directory
|
||||
for path in fs.list(@path)
|
||||
if fs.isDirectory(path)
|
||||
directories.push(new Directory(path))
|
||||
else
|
||||
else if fs.isFile(path)
|
||||
files.push(new File(path))
|
||||
else
|
||||
console.error "#{path} is neither a file nor a directory."
|
||||
|
||||
directories.concat(files)
|
||||
|
||||
afterSubscribe: ->
|
||||
|
||||
Reference in New Issue
Block a user