src/index.js
function writeFile (file, callback) {
  fs.outputFile(path.resolve(this._destination, path.join(file.path.dir, file.path.name + file.path.ext)), file.content, function (err) {
    if (err) callback(err);
    callback(null);
  });
}
function writeFile (file, callback) {
  fs.outputFile(path.resolve(this._destination, path.join(file.path.dir, file.path.name + file.path.ext)), file.content, function (err) {
    if (err) callback(err);
    callback(null);
  });
}
function writeFile ( file , callback ) { fs . outputFile ( path . resolve ( this . _destination , path . join ( file . path . dir , file . path . name + file . path . ext ) ) , file . content , function ( err ) { if ( err ) callback ( err ) ; callback ( null ) ; } ) ; }
Write file to disk
@param {Object.<DittoFile>} file DittoFile
@param {Function.<Error>} callback
Write file to disk