| Software: Apache. PHP/5.3.29 uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 
 Safe-mode: OFF (not secure) /opt/alt/alt-nodejs14/root/usr/lib/node_modules/npm/node_modules.bundled/tar/lib/   drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict'
// tar -u
const hlo = require('./high-level-opt.js')
const r = require('./replace.js')
// just call tar.r with the filter and mtimeCache
const u = module.exports = (opt_, files, cb) => {
  const opt = hlo(opt_)
  if (!opt.file)
    throw new TypeError('file is required')
  if (opt.gzip)
    throw new TypeError('cannot append to compressed archives')
  if (!files || !Array.isArray(files) || !files.length)
    throw new TypeError('no files or directories specified')
  files = Array.from(files)
  mtimeFilter(opt)
  return r(opt, files, cb)
}
const mtimeFilter = opt => {
  const filter = opt.filter
  if (!opt.mtimeCache)
    opt.mtimeCache = new Map()
  opt.filter = filter ? (path, stat) =>
    filter(path, stat) && !(opt.mtimeCache.get(path) > stat.mtime)
    : (path, stat) => !(opt.mtimeCache.get(path) > stat.mtime)
}
 | 
| :: Command execute :: | |
| --[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0129 ]-- |