var fs = require('graceful-fs');

module.exports = function(writePath, file, cb) {
  var outStream = fs.createWriteStream(writePath);

  file.contents.once('error', cb);
  file.contents.pipe(outStream).once('finish', function() {
    file.contents = fs.createReadStream(writePath);
    cb();
  });

  return outStream;
};

@@ -1,12 +1,59 @@
+var streamFile = require('../src/streamFile');%0A
 var fs = req
@@ -278,63 +278,27 @@
     
-file.contents = fs.createReadStream(writePath);%0A   
+streamFile(file,
  cb
-(
 );%0A 

Use ./src/streamFile for re-streaming .dest() streams