mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
project.allURLs()
This commit is contained in:
@@ -73,3 +73,10 @@ class Project extends Resource
|
||||
|
||||
urls: (root=@url) ->
|
||||
_.reject (fs.list root), (url) => @settings.ignorePattern.test url
|
||||
|
||||
# WARNING THIS IS PROBABLY SLOW
|
||||
allURLs: ->
|
||||
_.compact _.map (fs.listDirectoryTree @url), (url) =>
|
||||
name = url.replace "#{window.url}/", ''
|
||||
return if @settings.ignorePattern.test name
|
||||
{ name, url }
|
||||
|
||||
Reference in New Issue
Block a user