Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.217.230.80
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
del /
Delete
Unzip
Name
Size
Permission
Date
Action
index.js
1.44
KB
-rw-r--r--
2017-06-09 14:26
license
1.08
KB
-rw-r--r--
2017-06-01 19:17
package.json
1.8
KB
-rw-r--r--
2021-02-04 21:24
readme.md
3.03
KB
-rw-r--r--
2017-06-09 14:26
Save
Rename
'use strict'; const path = require('path'); const globby = require('globby'); const isPathCwd = require('is-path-cwd'); const isPathInCwd = require('is-path-in-cwd'); const pify = require('pify'); const rimraf = require('rimraf'); const pMap = require('p-map'); const rimrafP = pify(rimraf); function safeCheck(file) { if (isPathCwd(file)) { throw new Error('Cannot delete the current working directory. Can be overriden with the `force` option.'); } if (!isPathInCwd(file)) { throw new Error('Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.'); } } module.exports = (patterns, opts) => { opts = Object.assign({}, opts); const force = opts.force; delete opts.force; const dryRun = opts.dryRun; delete opts.dryRun; const mapper = file => { if (!force) { safeCheck(file); } file = path.resolve(opts.cwd || '', file); if (dryRun) { return file; } return rimrafP(file, {glob: false}).then(() => file); }; return globby(patterns, opts).then(files => pMap(files, mapper, opts)); }; module.exports.sync = (patterns, opts) => { opts = Object.assign({}, opts); const force = opts.force; delete opts.force; const dryRun = opts.dryRun; delete opts.dryRun; return globby.sync(patterns, opts).map(file => { if (!force) { safeCheck(file); } file = path.resolve(opts.cwd || '', file); if (!dryRun) { rimraf.sync(file, {glob: false}); } return file; }); };