From 06a46b1cb8a3420bf0cb77c70000d2d1e0c00d92 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 24 Aug 2011 09:53:26 -0700 Subject: [PATCH] showing files in cwd --- HTML/lib/project.coffee | 11 +++++++++++ HTML/project.html | 26 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 HTML/lib/project.coffee diff --git a/HTML/lib/project.coffee b/HTML/lib/project.coffee new file mode 100644 index 000000000..47a347cb7 --- /dev/null +++ b/HTML/lib/project.coffee @@ -0,0 +1,11 @@ +$ -> + dir = OSX.NSFileManager.defaultManager.currentDirectoryPath + $('#cwd').text(dir) + + files = Dir.list(dir) + files = _.map files, (file) -> + listItems = _.map files, (file) -> + file = file.replace(dir, "") + "
  • #{file}
  • " + + $('#files').append(listItems.join('\n')) diff --git a/HTML/project.html b/HTML/project.html index e69de29bb..408782794 100644 --- a/HTML/project.html +++ b/HTML/project.html @@ -0,0 +1,26 @@ + + + + + + + + + + +
    +