mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Use mkdirp from fsUtils.makeTree()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user