3 var through
= require('through2');
4 var utimes
= require('fs').utimes
;
7 * Ensures that the file has the same mtime as the original source
9 function restoreTimestamps() {
10 return through
.obj(function(file
, enc
, done
) {
11 utimes(file
.path
, file
.stat
.atime
, file
.stat
.mtime
, done
);
15 module
.exports
= restoreTimestamps
;