Gitter migration: Setup redirects (rollout pt. 3)
[gitter.git] / build-scripts / gulp-restore-timestamps.js
blobf5ae2cc3232909e4f03dad94c6bfd66ced95bfc9
1 'use strict';
3 var through = require('through2');
4 var utimes = require('fs').utimes;
6 /**
7 * Ensures that the file has the same mtime as the original source
8 */
9 function restoreTimestamps() {
10 return through.obj(function(file, enc, done) {
11 utimes(file.path, file.stat.atime, file.stat.mtime, done);
12 });
15 module.exports = restoreTimestamps;