Rename .write() to writeSync()

This commit is contained in:
Kevin Sawicki
2013-06-12 20:38:26 -07:00
parent 3e0658fe30
commit ed3a4a33e2
19 changed files with 99 additions and 99 deletions

View File

@@ -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)