1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
filesystemhelper.php
См. документацию.
1<?php
2namespace Bitrix\Translate\IO;
3
4use Bitrix\Translate;
5
7{
15 public static function getFolderList(string $path): array
16 {
17 $path = Translate\IO\Path::tidy(\rtrim($path, '/'));
18 if (defined('GLOB_BRACE'))
19 {
20 return \glob($path.'/{,.}*', \GLOB_BRACE | \GLOB_ONLYDIR);
21 }
22 return array_merge(
23 \glob($path.'/.*', \GLOB_ONLYDIR),
24 \glob($path.'/*', \GLOB_ONLYDIR)
25 );
26 }
27
35 public static function getFileList(string $path): array
36 {
37 $path = Translate\IO\Path::tidy(\rtrim($path, '/'));
38 if (defined('GLOB_BRACE'))
39 {
40 return \glob($path.'/{,.}*.php', \GLOB_BRACE);
41 }
42 return array_merge(
43 \glob($path.'/.*.php'),
44 \glob($path.'/*.php')
45 );
46 }
47}
$path
Определения access_edit.php:21
static getFileList(string $path)
Определения filesystemhelper.php:35
static getFolderList(string $path)
Определения filesystemhelper.php:15
static tidy(string $path)
Определения path.php:16
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804