diff --git a/includes/functions/deleteDirectory.php b/includes/functions/deleteDirectory.php
index f1534373..acc6bed4 100644
--- a/includes/functions/deleteDirectory.php
+++ b/includes/functions/deleteDirectory.php
@@ -16,13 +16,16 @@ function delete_directory(string $directoryToDelete)
$filepath = $directoryToDelete . '/' . $filename;
if (is_file($filepath) && !is_dir($filepath)) {
- unlink($filepath);
+ echo 'unlink: ' . $filepath . '
';
+ // unlink($filepath);
}
if (is_dir($filepath)) {
- delete_directory($filepath);
+ echo 'delete_directory: ' . $filepath . '
';
+ // delete_directory($filepath);
}
}
- unlink($directoryToDelete);
+ echo 'rmdir (final): ' . $filepath . '
';
+ // rmdir($directoryToDelete);
}
diff --git a/index.php b/index.php
index 317f8263..7ab602b2 100644
--- a/index.php
+++ b/index.php
@@ -112,7 +112,8 @@ if ($zip->open($zip_filename)) {
delete_directory($filepath);
}
- rename($filepath, __DIR__ . '/' . $filename);
+ echo 'reanme: ' . $filepath . ' to ' . __DIR__ . '/' . $filename . '
';
+ // rename($filepath, __DIR__ . '/' . $filename);
}
}