REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.50 KB
Close
//opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules/tinyglobby/node_modules/fdir/dist/utils.js
Text
Base64
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.normalizePath = exports.isRootDirectory = exports.convertSlashes = exports.cleanPath = void 0; const path_1 = require("path"); function cleanPath(path) { let normalized = (0, path_1.normalize)(path); // we have to remove the last path separator // to account for / root path if (normalized.length > 1 && normalized[normalized.length - 1] === path_1.sep) normalized = normalized.substring(0, normalized.length - 1); return normalized; } exports.cleanPath = cleanPath; const SLASHES_REGEX = /[\\/]/g; function convertSlashes(path, separator) { return path.replace(SLASHES_REGEX, separator); } exports.convertSlashes = convertSlashes; const WINDOWS_ROOT_DIR_REGEX = /^[a-z]:[\\/]$/i; function isRootDirectory(path) { return path === "/" || WINDOWS_ROOT_DIR_REGEX.test(path); } exports.isRootDirectory = isRootDirectory; function normalizePath(path, options) { const { resolvePaths, normalizePath, pathSeparator } = options; const pathNeedsCleaning = (process.platform === "win32" && path.includes("/")) || path.startsWith("."); if (resolvePaths) path = (0, path_1.resolve)(path); if (normalizePath || pathNeedsCleaning) path = cleanPath(path); if (path === ".") return ""; const needsSeperator = path[path.length - 1] !== pathSeparator; return convertSlashes(needsSeperator ? path + pathSeparator : path, pathSeparator); } exports.normalizePath = normalizePath;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
api
DIR
-
drwxr-xr-x
2026-03-14 07:02:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
builder
DIR
-
drwxr-xr-x
2026-03-14 07:02:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.cjs
17.51 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.cts
4.49 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.mts
4.49 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
973 B
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.mjs
16.52 KB
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types.js
77 B
lrw-r--r--
2026-02-23 06:54:01
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
1.50 KB
lrw-r--r--
2026-02-23 06:54:01
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).