mirror of
https://github.com/atom/atom.git
synced 2026-02-10 22:55:09 -05:00
Add fs.makeTree
This commit is contained in:
@@ -93,6 +93,14 @@ module.exports =
|
||||
makeDirectory: (path) ->
|
||||
$native.makeDirectory(path)
|
||||
|
||||
# Creates the directory specified by "path" including any missing parent
|
||||
# directories.
|
||||
makeTree: (path) ->
|
||||
return unless path
|
||||
if not @exists(path)
|
||||
@makeTree(@directory(path))
|
||||
@makeDirectory(path)
|
||||
|
||||
traverseTree: (rootPath, fn) ->
|
||||
recurse = null
|
||||
prune = -> recurse = false
|
||||
|
||||
Reference in New Issue
Block a user