mirror of
https://github.com/atom/atom.git
synced 2026-02-09 14:15:24 -05:00
Display directories first in the tree view. Style file names at same indent as directory names (beyond disclosure arrow)
This commit is contained in:
@@ -9,10 +9,12 @@ class Directory
|
||||
fs.base(@path)
|
||||
|
||||
getEntries: ->
|
||||
fs.list(@path).map (path) ->
|
||||
directories = []
|
||||
files = []
|
||||
for path in fs.list(@path)
|
||||
if fs.isDirectory(path)
|
||||
new Directory(path)
|
||||
directories.push(new Directory(path))
|
||||
else
|
||||
new File(path)
|
||||
|
||||
files.push(new File(path))
|
||||
directories.concat(files)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user