X7ROOT File Manager
Current Path:
/usr/lib/node_modules/npm/node_modules/tar/lib
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
tar
/
lib
/
ðŸ“
..
📄
buffer.js
(283 B)
📄
create.js
(2.32 KB)
📄
extract.js
(2.76 KB)
📄
header.js
(8.83 KB)
📄
high-level-opt.js
(772 B)
📄
large-numbers.js
(2.16 KB)
📄
list.js
(3.08 KB)
📄
mkdir.js
(5.06 KB)
📄
mode-fix.js
(277 B)
📄
pack.js
(9.39 KB)
📄
parse.js
(11.86 KB)
📄
pax.js
(3.97 KB)
📄
read-entry.js
(2.61 KB)
📄
replace.js
(5.36 KB)
📄
types.js
(1.07 KB)
📄
unpack.js
(16.46 KB)
📄
update.js
(852 B)
📄
warn-mixin.js
(309 B)
📄
winchars.js
(533 B)
📄
write-entry.js
(11.77 KB)
Editing: 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) }
Upload File
Create Folder