Rename listTree() to listTreeSync()

This commit is contained in:
Kevin Sawicki
2013-06-12 18:26:44 -07:00
parent 27d9da15dc
commit d77705a039
4 changed files with 5 additions and 5 deletions

View File

@@ -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$/, '')

View File

@@ -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)