diff --git a/encoder/firmware.php b/encoder/firmware.php index 2eae1eb..39f4033 100755 --- a/encoder/firmware.php +++ b/encoder/firmware.php @@ -37,16 +37,6 @@ switch ($_POST['action']) { $zip = new ZipArchive(); $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 */ foreach ($jsonFiles as $json) {