This commit is contained in:
salam committed 2026-07-14 12:56:24 +02:00
1 parent 68a1ec1769
commit 987d096928
8 files changed
+149 -154

No files matched your search

+4 -3
View File
@@ -9,13 +9,14 @@ use ZipArchive;
class ZipFolder
{
public static function create(string $day)
public static function create(string $path)
{
$zipFilePath = Sofascore::$storage . '/' . $day . '.zip';
// $zipFilePath = Sofascore::$storage . '/' . $day . '.zip';
$path = Sofascore::$storage . '/' . $day;
// $path = Sofascore::$storage . '/' . $day;
$zipFilePath = $path . '/archive.zip';
$zip = new ZipArchive();
if ($zip->open($zipFilePath, ZipArchive::CREATE | ZipArchive::OVERWRITE) === true) {