project can find sub-urls

This commit is contained in:
Chris Wanstrath
2011-11-12 20:51:12 -08:00
parent f2353c0841
commit aac84b95be
2 changed files with 7 additions and 4 deletions

View File

@@ -14,6 +14,8 @@ module.exports =
class Project extends Resource
window.resourceTypes.push this
ignorePattern: /(\.git|\.xcodeproj|\.DS_Store)$/
html:
$ '<div></div>'
@@ -71,3 +73,6 @@ class Project extends Resource
parent = @url.replace /([^\/])$/, "$1/"
child = url.replace /([^\/])$/, "$1/"
child.match "^" + parent
urls: (root=@url) ->
_.reject (fs.list root), (url) => @ignorePattern.test url