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) { function getFileListRecursive($dir, $displayDir=null) {
$filesAndDirs = scandir($dir); $filesAndDirs = scandir($dir);
error_log(json_encode($filesAndDirs));
$files = []; $files = [];
foreach ($filesAndDirs as $file) { foreach ($filesAndDirs as $file) {
error_log("getFileListRecursive: ".$dir);
if ($file == "." || $file == "..") { continue; } if ($file == "." || $file == "..") { continue; }
if (is_dir($dir . $file)) { if (is_dir($dir . $file)) {
$sub_files = getFileListRecursive($dir . $file . '/', $displayDir . $file . '/'); $sub_files = getFileListRecursive($dir . $file . '/', $displayDir . $file . '/');