Update compile_database.php

This commit is contained in:
jakani24
2024-04-01 12:06:45 +02:00
parent a4bdc1f6f7
commit ce175afcb6

View File

@@ -153,9 +153,11 @@ $files = glob($directory . '/*');
// Iterate over each file and delete it // Iterate over each file and delete it
foreach ($files as $file) { foreach ($files as $file) {
// Check if the file is a regular file (not a directory) // Check if the file is a regular file (not a directory)
//if (is_file($file)) { if (is_file($file)) {
unlink($file); unlink($file);
//} }else{
rmdir($file);
}
} }
set_time_limit(0); set_time_limit(0);
download_files($excluded); download_files($excluded);