File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/translate/lib/io/filesystemhelper.php
Back
<?php namespace Bitrix\Translate\IO; use Bitrix\Translate; class FileSystemHelper { /** * Return list full path of folders. * * @param string $path Path to check. * * @return string[] */ public static function getFolderList($path) { $path = Translate\IO\Path::tidy(\rtrim($path, '/')); if (defined('GLOB_BRACE')) { return \glob($path.'/{,.}*', \GLOB_BRACE | \GLOB_ONLYDIR); } return array_merge( \glob($path.'/.*', \GLOB_ONLYDIR), \glob($path.'/*', \GLOB_ONLYDIR) ); } /** * Return list full path of folders. * * @param string $path Path to check. * * @return string[] */ public static function getFileList($path) { $path = Translate\IO\Path::tidy(\rtrim($path, '/')); if (defined('GLOB_BRACE')) { return \glob($path.'/{,.}*.php', \GLOB_BRACE); } return array_merge( \glob($path.'/.*.php'), \glob($path.'/*.php') ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings