mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
14 lines
308 B
CoffeeScript
14 lines
308 B
CoffeeScript
$ = require 'jquery'
|
|
|
|
$ ->
|
|
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'))
|