This commit is contained in:
devdatt 2025-12-20 08:35:48 +05:30
parent 94b256ee6f
commit ee9a822a31
1 changed files with 0 additions and 10 deletions

View File

@ -37,16 +37,6 @@ switch ($_POST['action']) {
$zip = new ZipArchive(); $zip = new ZipArchive();
$zip->open($tmpZip, ZipArchive::CREATE | ZipArchive::OVERWRITE); $zip->open($tmpZip, ZipArchive::CREATE | ZipArchive::OVERWRITE);
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($sourceDir, FilesystemIterator::SKIP_DOTS)
);
foreach ($files as $file) {
$zip->addFile(
$file->getRealPath(),
substr($file->getRealPath(), strlen($sourceDir) + 1)
);
}
/* Add JSON files if exist */ /* Add JSON files if exist */
foreach ($jsonFiles as $json) { foreach ($jsonFiles as $json) {