tasks/aliases.js
function syncTimestamp(src, dest, timestamp) {
    if (timestamp) {
      var stat = fs.lstatSync(src);
      var fd = fs.openSync(dest, process.platform === 'win32' ? 'r+' : 'r');
      fs.futimesSync(fd, stat.atime, stat.mtime);
      fs.closeSync(fd);
    }
  }
function syncTimestamp(src, dest, timestamp) {
    if (timestamp) {
      var stat = fs.lstatSync(src);
      var fd = fs.openSync(dest, process.platform === 'win32' ? 'r+' : 'r');
      fs.futimesSync(fd, stat.atime, stat.mtime);
      fs.closeSync(fd);
    }
  }
function syncTimestamp ( src , dest , timestamp ) { if ( timestamp ) { var stat = fs . lstatSync ( src ) ; var fd = fs . openSync ( dest , process . platform === 'win32' ? 'r+' : 'r' ) ; fs . futimesSync ( fd , stat . atime , stat . mtime ) ; fs . closeSync ( fd ) ; } }
Copy timestamp from source to destination file.
@param {string} src
@param {string} dest
@param {boolean} timestamp
Copy timestamp from source to destination file .