🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-14 17:00:51 | PHP 8.1.34
📂
/ (Root)
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
fs
/
lib
📍 /usr/lib/node_modules/npm/node_modules/@npmcli/fs/lib
🔄 Refresh
✏️
Editing: with-owner.js
Read Only
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 Changes
❌ Cancel