Use mkdirp from fsUtils.makeTree()

This commit is contained in:
Kevin Sawicki
2013-06-12 20:31:38 -07:00
parent f35724daa9
commit 3e0658fe30

View File

@@ -158,10 +158,7 @@ module.exports =
# Creates the directory specified by "path" including any missing parent
# directories.
makeTree: (path) ->
return unless path
if not @exists(path)
@makeTree(Path.dirname(path))
@makeDirectory(path)
mkdirp.sync(path) if path and not @exists(path)
traverseTreeSync: (rootPath, onFile, onDirectory) ->
return unless @isDirectorySync(rootPath)