Remove $native.write()

This commit is contained in:
Kevin Sawicki
2013-03-07 18:20:29 -08:00
parent 6abf1ff1aa
commit 5202e846de
3 changed files with 6 additions and 29 deletions

View File

@@ -3,6 +3,7 @@
_ = require 'underscore'
nodeFs = nodeRequire 'fs'
mkdirp = nodeRequire 'mkdirp'
module.exports =
# Make the given path absolute by resolving it against the
@@ -102,7 +103,8 @@ module.exports =
# Open, write, flush, and close a file, writing the given content.
write: (path, content) ->
$native.write(path, content)
mkdirp.sync(@directory(path))
nodeFs.writeFileSync(path, content)
makeDirectory: (path) ->
nodeFs.mkdirSync(path)