REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.36 KB
Close
/proc/thread-self/root/opt/alt/alt-nodejs6/root/lib/node_modules/npm/node_modules/chownr/chownr.js
Text
Base64
module.exports = chownr chownr.sync = chownrSync var fs = require("fs") , path = require("path") function chownr (p, uid, gid, cb) { fs.readdir(p, function (er, children) { // any error other than ENOTDIR means it's not readable, or // doesn't exist. give up. if (er && er.code !== "ENOTDIR") return cb(er) if (er || !children.length) return fs.chown(p, uid, gid, cb) var len = children.length , errState = null children.forEach(function (child) { var pathChild = path.resolve(p, child); fs.lstat(pathChild, function(er, stats) { if (er) return cb(er) if (!stats.isSymbolicLink()) chownr(pathChild, uid, gid, then) else then() }) }) function then (er) { if (errState) return if (er) return cb(errState = er) if (-- len === 0) return fs.chown(p, uid, gid, cb) } }) } function chownrSync (p, uid, gid) { var children try { children = fs.readdirSync(p) } catch (er) { if (er && er.code === "ENOTDIR") return fs.chownSync(p, uid, gid) throw er } if (!children.length) return fs.chownSync(p, uid, gid) children.forEach(function (child) { var pathChild = path.resolve(p, child) var stats = fs.lstatSync(pathChild) if (!stats.isSymbolicLink()) chownrSync(pathChild, uid, gid) }) return fs.chownSync(p, uid, gid) }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
chownr.js
1.36 KB
lrw-r--r--
2021-09-28 09:36:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
765 B
lrw-r--r--
2021-09-28 09:36:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.26 KB
lrw-r--r--
2021-09-28 09:36:08
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
59 B
lrw-r--r--
2021-09-28 09:36:08
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).