From 3e0658fe305836d22809805e4507bee5a253c26e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Wed, 12 Jun 2013 20:31:38 -0700 Subject: [PATCH] Use mkdirp from fsUtils.makeTree() --- src/stdlib/fs-utils.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/stdlib/fs-utils.coffee b/src/stdlib/fs-utils.coffee index fe6ec42de..8e232d2b1 100644 --- a/src/stdlib/fs-utils.coffee +++ b/src/stdlib/fs-utils.coffee @@ -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)