mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Rename .write() to writeSync()
This commit is contained in:
@@ -120,11 +120,11 @@ module.exports =
|
||||
path.split("/")
|
||||
|
||||
# Open, write, flush, and close a file, writing the given content.
|
||||
write: (path, content) ->
|
||||
writeSync: (path, content) ->
|
||||
mkdirp.sync(Path.dirname(path))
|
||||
fs.writeFileSync(path, content)
|
||||
|
||||
writeAsync: (path, content, callback) ->
|
||||
write: (path, content, callback) ->
|
||||
mkdirp Path.dirname(path), (error) ->
|
||||
if error?
|
||||
callback?(error)
|
||||
|
||||
Reference in New Issue
Block a user