forked from zhurui/management
14 lines
222 B
JavaScript
14 lines
222 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var fs = require('graceful-fs');
|
||
|
|
||
|
function writeBuffer(writePath, file, cb) {
|
||
|
var opt = {
|
||
|
mode: file.stat.mode
|
||
|
};
|
||
|
|
||
|
fs.writeFile(writePath, file.contents, opt, cb);
|
||
|
}
|
||
|
|
||
|
module.exports = writeBuffer;
|