ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/@npmcli/fs/lib
/
lib
node_modules
npm
node_modules
@npmcli
fs
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
common
-
chmod
Open
Rename
Delete
cp
-
chmod
Open
Rename
Delete
rm
-
chmod
Open
Rename
Delete
copy-file.js
494 B
chmod
View
DL
Edit
Rename
Delete
errors.js
3.32 MB
chmod
View
DL
Edit
Rename
Delete
fs.js
660 B
chmod
View
DL
Edit
Rename
Delete
index.js
395 B
chmod
View
DL
Edit
Rename
Delete
mkdir.js
435 B
chmod
View
DL
Edit
Rename
Delete
mkdtemp.js
777 B
chmod
View
DL
Edit
Rename
Delete
with-owner-sync.js
463 B
chmod
View
DL
Edit
Rename
Delete
with-owner.js
495 B
chmod
View
DL
Edit
Rename
Delete
with-temp-dir.js
1021 B
chmod
View
DL
Edit
Rename
Delete
write-file.js
395 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/@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
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply