GRAYBYTE WORDPRESS FILE MANAGER3598

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/node_modules/npm/node_modules/pacote/lib/util/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib/node_modules/npm/node_modules/pacote/lib/util//pack-dir.js
'use strict'

const BB = require('bluebird')

const cacache = require('cacache')
const cacheKey = require('./cache-key')
const optCheck = require('./opt-check')
const packlist = require('npm-packlist')
const pipe = BB.promisify(require('mississippi').pipe)
const tar = require('tar')

module.exports = packDir
function packDir (manifest, label, dir, target, opts) {
  opts = optCheck(opts)

  const packer = opts.dirPacker
    ? BB.resolve(opts.dirPacker(manifest, dir))
    : mkPacker(dir)

  if (!opts.cache) {
    return packer.then(packer => pipe(packer, target))
  } else {
    const cacher = cacache.put.stream(
      opts.cache, cacheKey('packed-dir', label), opts
    ).on('integrity', i => {
      target.emit('integrity', i)
    })
    return packer.then(packer => BB.all([
      pipe(packer, cacher),
      pipe(packer, target)
    ]))
  }
}

function mkPacker (dir) {
  return packlist({ path: dir }).then(files => {
    return tar.c({
      cwd: dir,
      gzip: true,
      portable: true,
      prefix: 'package/'
    }, files)
  })
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:36:29
root / root
0755
cache-key.js
0.126 KB
March 10 2021 14:36:37
root / root
0644
finished.js
0.409 KB
March 10 2021 14:36:37
root / root
0644
git.js
8.154 KB
March 10 2021 14:36:37
root / root
0644
opt-check.js
1.211 KB
March 10 2021 14:36:37
root / root
0644
pack-dir.js
1.025 KB
March 10 2021 14:36:37
root / root
0644
proclog.js
0.332 KB
March 10 2021 14:36:37
root / root
0644
read-json.js
0.47 KB
March 10 2021 14:36:37
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF