mirror of
https://github.com/atom/atom.git
synced 2026-02-18 18:34:21 -05:00
Rename listTree() to listTreeSync()
This commit is contained in:
@@ -60,7 +60,7 @@ class PackageGeneratorView extends View
|
||||
templatePath = fsUtils.resolveOnLoadPath(path.join("package-generator", "template"))
|
||||
packageName = path.basename(@getPackagePath())
|
||||
|
||||
for templateChildPath in fsUtils.listTree(templatePath)
|
||||
for templateChildPath in fsUtils.listTreeSync(templatePath)
|
||||
relativePath = templateChildPath.replace(templatePath, "")
|
||||
relativePath = relativePath.replace(/^\//, '')
|
||||
relativePath = relativePath.replace(/\.template$/, '')
|
||||
|
||||
@@ -90,7 +90,7 @@ module.exports =
|
||||
'.' + ext.replace(/^\./, '')
|
||||
paths.filter (path) -> _.include(extensions, Path.extname(path))
|
||||
|
||||
listTree: (rootPath) ->
|
||||
listTreeSync: (rootPath) ->
|
||||
paths = []
|
||||
onPath = (path) =>
|
||||
paths.push(path)
|
||||
|
||||
Reference in New Issue
Block a user