This commit is contained in:
matth@ultra 2024-09-01 22:59:46 +02:00
parent 8279ec5f88
commit 9f2cda4930

View File

@ -32,10 +32,8 @@
*/
function getFileListRecursive($dir, $displayDir=null) {
$filesAndDirs = scandir($dir);
error_log(json_encode($filesAndDirs));
$files = [];
foreach ($filesAndDirs as $file) {
error_log("getFileListRecursive: ".$dir);
if ($file == "." || $file == "..") { continue; }
if (is_dir($dir . $file)) {
$sub_files = getFileListRecursive($dir . $file . '/', $displayDir . $file . '/');