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.117.132.79
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
fs-extra /
lib /
copy /
Delete
Unzip
Name
Size
Permission
Date
Action
copy.js
1.62
KB
-rw-rw-r--
2022-08-30 11:49
index.js
97
B
-rw-rw-r--
2022-08-30 11:49
ncp.js
5.97
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict' const fs = require('graceful-fs') const path = require('path') const ncp = require('./ncp') const mkdir = require('../mkdirs') const pathExists = require('../path-exists').pathExists function copy (src, dest, options, callback) { if (typeof options === 'function' && !callback) { callback = options options = {} } else if (typeof options === 'function' || options instanceof RegExp) { options = {filter: options} } callback = callback || function () {} options = options || {} // Warn about using preserveTimestamps on 32-bit node: if (options.preserveTimestamps && process.arch === 'ia32') { console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;\n see https://github.com/jprichardson/node-fs-extra/issues/269`) } // don't allow src and dest to be the same const basePath = process.cwd() const currentPath = path.resolve(basePath, src) const targetPath = path.resolve(basePath, dest) if (currentPath === targetPath) return callback(new Error('Source and destination must not be the same.')) fs.lstat(src, (err, stats) => { if (err) return callback(err) let dir = null if (stats.isDirectory()) { const parts = dest.split(path.sep) parts.pop() dir = parts.join(path.sep) } else { dir = path.dirname(dest) } pathExists(dir, (err, dirExists) => { if (err) return callback(err) if (dirExists) return ncp(src, dest, options, callback) mkdir.mkdirs(dir, err => { if (err) return callback(err) ncp(src, dest, options, callback) }) }) }) } module.exports = copy