Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/node_modules/npm/node_modules/tar/lib//update.js
'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)
}
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- January 01 1970 00:00:00 root / root 0 buffer.js 0.276 KB March 10 2021 14:36:37 root / root 0644 create.js 2.318 KB March 10 2021 14:36:37 root / root 0644 extract.js 2.758 KB March 10 2021 14:36:37 root / root 0644 header.js 8.832 KB March 10 2021 14:36:37 root / root 0644 high-level-opt.js 0.754 KB March 10 2021 14:36:37 root / root 0644 large-numbers.js 2.158 KB March 10 2021 14:36:37 root / root 0644 list.js 3.078 KB March 10 2021 14:36:37 root / root 0644 mkdir.js 5.057 KB March 10 2021 14:36:37 root / root 0644 mode-fix.js 0.271 KB March 10 2021 14:36:37 root / root 0644 pack.js 9.389 KB March 10 2021 14:36:37 root / root 0644 parse.js 11.855 KB March 10 2021 14:36:37 root / root 0644 pax.js 3.975 KB March 10 2021 14:36:37 root / root 0644 read-entry.js 2.61 KB March 10 2021 14:36:37 root / root 0644 replace.js 5.363 KB March 10 2021 14:36:37 root / root 0644 types.js 1.069 KB March 10 2021 14:36:37 root / root 0644 unpack.js 16.461 KB March 10 2021 14:36:37 root / root 0644 update.js 0.832 KB March 10 2021 14:36:37 root / root 0644 warn-mixin.js 0.302 KB March 10 2021 14:36:37 root / root 0644 winchars.js 0.521 KB March 10 2021 14:36:37 root / root 0644 write-entry.js 11.771 KB March 10 2021 14:36:37 root / root 0644