mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
12 lines
286 B
CoffeeScript
12 lines
286 B
CoffeeScript
$ ->
|
|
dir = OSX.NSFileManager.defaultManager.currentDirectoryPath
|
|
$('#cwd').text(dir)
|
|
|
|
files = Dir.list(dir)
|
|
files = _.map files, (file) ->
|
|
listItems = _.map files, (file) ->
|
|
file = file.replace(dir, "")
|
|
"<li>#{file}</li>"
|
|
|
|
$('#files').append(listItems.join('\n'))
|