ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/tar/lib
/
lib
node_modules
npm
node_modules
tar
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
create.js
2.3 MB
chmod
View
DL
Edit
Rename
Delete
extract.js
2.74 MB
chmod
View
DL
Edit
Rename
Delete
get-write-flag.js
921 B
chmod
View
DL
Edit
Rename
Delete
header.js
8.77 MB
chmod
View
DL
Edit
Rename
Delete
high-level-opt.js
760 B
chmod
View
DL
Edit
Rename
Delete
large-numbers.js
2.13 MB
chmod
View
DL
Edit
Rename
Delete
list.js
3.09 MB
chmod
View
DL
Edit
Rename
Delete
mkdir.js
5.21 MB
chmod
View
DL
Edit
Rename
Delete
mode-fix.js
619 B
chmod
View
DL
Edit
Rename
Delete
normalize-unicode.js
405 B
chmod
View
DL
Edit
Rename
Delete
normalize-windows-path.js
410 B
chmod
View
DL
Edit
Rename
Delete
pack.js
9.22 MB
chmod
View
DL
Edit
Rename
Delete
parse.js
13.86 MB
chmod
View
DL
Edit
Rename
Delete
path-reservations.js
4.21 MB
chmod
View
DL
Edit
Rename
Delete
pax.js
3.92 MB
chmod
View
DL
Edit
Rename
Delete
read-entry.js
2.71 MB
chmod
View
DL
Edit
Rename
Delete
replace.js
5.35 MB
chmod
View
DL
Edit
Rename
Delete
strip-absolute-path.js
918 B
chmod
View
DL
Edit
Rename
Delete
strip-trailing-slashes.js
394 B
chmod
View
DL
Edit
Rename
Delete
types.js
1.07 MB
chmod
View
DL
Edit
Rename
Delete
unpack.js
24.46 MB
chmod
View
DL
Edit
Rename
Delete
update.js
842 B
chmod
View
DL
Edit
Rename
Delete
warn-mixin.js
697 B
chmod
View
DL
Edit
Rename
Delete
winchars.js
535 B
chmod
View
DL
Edit
Rename
Delete
write-entry.js
14.76 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/tar/lib/read-entry.js
'use strict' const MiniPass = require('minipass') const normPath = require('./normalize-windows-path.js') const SLURP = Symbol('slurp') module.exports = class ReadEntry extends MiniPass { constructor (header, ex, gex) { super() // read entries always start life paused. this is to avoid the // situation where Minipass's auto-ending empty streams results // in an entry ending before we're ready for it. this.pause() this.extended = ex this.globalExtended = gex this.header = header this.startBlockSize = 512 * Math.ceil(header.size / 512) this.blockRemain = this.startBlockSize this.remain = header.size this.type = header.type this.meta = false this.ignore = false switch (this.type) { case 'File': case 'OldFile': case 'Link': case 'SymbolicLink': case 'CharacterDevice': case 'BlockDevice': case 'Directory': case 'FIFO': case 'ContiguousFile': case 'GNUDumpDir': break case 'NextFileHasLongLinkpath': case 'NextFileHasLongPath': case 'OldGnuLongPath': case 'GlobalExtendedHeader': case 'ExtendedHeader': case 'OldExtendedHeader': this.meta = true break // NOTE: gnutar and bsdtar treat unrecognized types as 'File' // it may be worth doing the same, but with a warning. default: this.ignore = true } this.path = normPath(header.path) this.mode = header.mode if (this.mode) this.mode = this.mode & 0o7777 this.uid = header.uid this.gid = header.gid this.uname = header.uname this.gname = header.gname this.size = header.size this.mtime = header.mtime this.atime = header.atime this.ctime = header.ctime this.linkpath = normPath(header.linkpath) this.uname = header.uname this.gname = header.gname if (ex) this[SLURP](ex) if (gex) this[SLURP](gex, true) } write (data) { const writeLen = data.length if (writeLen > this.blockRemain) throw new Error('writing more to entry than is appropriate') const r = this.remain const br = this.blockRemain this.remain = Math.max(0, r - writeLen) this.blockRemain = Math.max(0, br - writeLen) if (this.ignore) return true if (r >= writeLen) return super.write(data) // r < writeLen return super.write(data.slice(0, r)) } [SLURP] (ex, global) { for (const k in ex) { // we slurp in everything except for the path attribute in // a global extended header, because that's weird. if (ex[k] !== null && ex[k] !== undefined && !(global && k === 'path')) this[k] = k === 'path' || k === 'linkpath' ? normPath(ex[k]) : ex[k] } } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply