REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 937 B
Close
//proc/self/root/opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/mkdirp-infer-owner/index.js
Text
Base64
const inferOwner = require('infer-owner') const mkdirp = require('mkdirp') const {promisify} = require('util') const chownr = promisify(require('chownr')) const platform = process.env.__TESTING_MKDIRP_INFER_OWNER_PLATFORM__ || process.platform const isWindows = platform === 'win32' const isRoot = process.getuid && process.getuid() === 0 const doChown = !isWindows && isRoot module.exports = !doChown ? (path, opts) => mkdirp(path, opts) : (path, opts) => inferOwner(path).then(({uid, gid}) => mkdirp(path, opts).then(made => uid !== 0 || gid !== process.getgid() ? chownr(made || path, uid, gid).then(() => made) : made)) module.exports.sync = !doChown ? (path, opts) => mkdirp.sync(path, opts) : (path, opts) => { const {uid, gid} = inferOwner.sync(path) const made = mkdirp.sync(path) if (uid !== 0 || gid !== process.getgid()) chownr.sync(made || path, uid, gid) return made }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
937 B
lrw-r--r--
2026-03-17 06:55:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
748 B
lrw-r--r--
2026-03-17 06:55:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
819 B
lrw-r--r--
2026-03-17 06:55:05
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).