Skip to content

Commit

Permalink
revert change in filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
ddevsr committed Feb 10, 2024
1 parent b87ee39 commit 11db748
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion system/Helpers/filesystem_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ function get_filenames(
}

if ($includeDir || ! $object->isDir()) {
$files[] = $includePath === false ? $basename : ($includePath === null ? str_replace($sourceDir, '', $name) : $name);
if ($includePath === false) {
$files[] = $basename;
} elseif ($includePath === null) {
$files[] = str_replace($sourceDir, '', $name);
} else {
$files[] = $name;
}
}
}
} catch (Throwable $e) {
Expand Down

0 comments on commit 11db748

Please sign in to comment.