wip STA
This commit is contained in:
1 parent
68a1ec1769
commit
987d096928
8 files changed
+149
-154
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user