Skip to content

Commit b8d1149

Browse files
committed
Use realpath when available
1 parent f8895e6 commit b8d1149

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Helpers/filesystem_helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ function get_filenames(string $source_dir, bool $include_path = false): array
218218
{
219219
$files = [];
220220

221+
$source_dir = realpath($source_dir) ?: $source_dir;
221222
$source_dir = rtrim($source_dir, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
222223

223224
try

0 commit comments

Comments
 (0)