This commit is contained in:
Corey Johnson 2011-08-27 21:51:54 -07:00
parent 3cbd52895b
commit 01d9598984

View File

@ -1,13 +1 @@
$ = 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'))
exports.Project = require('project/project').init()