Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
filesystemhelper.php
1
<?php
2
namespace
Bitrix\Translate\IO
;
3
4
use
Bitrix\Translate
;
5
6
class
FileSystemHelper
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
}
Bitrix\Translate\IO\FileSystemHelper
Definition
filesystemhelper.php:7
Bitrix\Translate\IO\FileSystemHelper\getFileList
static getFileList(string $path)
Definition
filesystemhelper.php:35
Bitrix\Translate\IO\FileSystemHelper\getFolderList
static getFolderList(string $path)
Definition
filesystemhelper.php:15
Bitrix\Translate\IO
Definition
archiver.php:2
Bitrix\Translate
modules
translate
lib
io
filesystemhelper.php
Создано системой
1.10.0