mirror of
https://github.com/atom/atom.git
synced 2026-02-18 18:34:21 -05:00
Install atom command asynchronously
This commit is contained in:
@@ -155,6 +155,13 @@ module.exports =
|
||||
mkdirp.sync(@directory(path))
|
||||
fs.writeFileSync(path, content)
|
||||
|
||||
writeAsync: (path, content, callback) ->
|
||||
mkdirp @directory(path), (error) ->
|
||||
if error?
|
||||
callback?(error)
|
||||
else
|
||||
fs.writeFile(path, content, callback)
|
||||
|
||||
makeDirectory: (path) ->
|
||||
fs.mkdirSync(path)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user