REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 495 B
Close
/proc/thread-self/root/opt/alt/alt-nodejs16/root/lib/node_modules/npm/node_modules/@npmcli/fs/lib/with-owner.js
Text
Base64
const getOptions = require('./common/get-options.js') const owner = require('./common/owner.js') const withOwner = async (path, fn, opts) => { const options = getOptions(opts, { copy: ['owner'], }) const { uid, gid } = await owner.validate(path, options.owner) const result = await fn({ uid, gid }) await Promise.all([ owner.update(path, uid, gid), typeof result === 'string' ? owner.update(result, uid, gid) : null, ]) return result } module.exports = withOwner
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
common
DIR
-
drwxr-xr-x
2026-04-08 07:02:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cp
DIR
-
drwxr-xr-x
2026-04-08 07:02:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
rm
DIR
-
drwxr-xr-x
2026-04-08 07:02:23
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
copy-file.js
494 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
errors.js
3.32 KB
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fs.js
660 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
395 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mkdir.js
435 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mkdtemp.js
777 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
with-owner-sync.js
463 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
with-owner.js
495 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
with-temp-dir.js
1021 B
lrw-r--r--
2026-03-17 06:55:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
write-file.js
395 B
lrw-r--r--
2026-03-17 06:55:04
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).