$26 GRAYBYTE WORDPRESS FILE MANAGER $40

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/fs/lib/

HOME
Current File : /opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/fs/lib//mkdtemp.js
const { dirname, sep } = require('path')

const fs = require('./fs.js')
const getOptions = require('./common/get-options.js')
const withOwner = require('./with-owner.js')

const mkdtemp = async (prefix, opts) => {
  const options = getOptions(opts, {
    copy: ['encoding'],
    wrap: 'encoding',
  })

  // mkdtemp relies on the trailing path separator to indicate if it should
  // create a directory inside of the prefix. if that's the case then the root
  // we infer ownership from is the prefix itself, otherwise it's the dirname
  // /tmp -> /tmpABCDEF, infers from /
  // /tmp/ -> /tmp/ABCDEF, infers from /tmp
  const root = prefix.endsWith(sep) ? prefix : dirname(prefix)

  return withOwner(root, () => fs.mkdtemp(prefix, options), opts)
}

module.exports = mkdtemp

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
common
--
31 Aug 2024 8.02 AM
root / root
0755
cp
--
31 Aug 2024 8.02 AM
root / root
0755
rm
--
31 Aug 2024 8.02 AM
root / root
0755
copy-file.js
0.482 KB
3 Nov 2023 9.14 PM
root / root
0644
errors.js
3.316 KB
3 Nov 2023 9.14 PM
root / root
0644
fs.js
0.645 KB
3 Nov 2023 9.14 PM
root / root
0644
index.js
0.386 KB
3 Nov 2023 9.14 PM
root / root
0644
mkdir.js
0.425 KB
3 Nov 2023 9.14 PM
root / root
0644
mkdtemp.js
0.759 KB
3 Nov 2023 9.14 PM
root / root
0644
with-owner-sync.js
0.452 KB
3 Nov 2023 9.14 PM
root / root
0644
with-owner.js
0.483 KB
3 Nov 2023 9.14 PM
root / root
0644
with-temp-dir.js
0.997 KB
3 Nov 2023 9.14 PM
root / root
0644
write-file.js
0.386 KB
3 Nov 2023 9.14 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF