]> _ Git - odl.git/commitdiff
wip #5084 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 9 Feb 2022 11:02:27 +0000 (12:02 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 9 Feb 2022 11:02:27 +0000 (12:02 +0100)
app/Jobs/ProcessFluidbook.php

index a6ec4f83ed10ab219d2b84f9605d45ad5372ae58..6ba1b41041ef595ed78856ea537d6f06027f4f0b 100644 (file)
@@ -39,7 +39,9 @@ class ProcessFluidbook extends Compiler
 
         /** @var Media $demo */
         $demo = $this->pub->getMediaInField($this->pub->getAttributeValue('animdemo'))->first()->getPath();
-        Zip::extract($demo, storage_path('fluidbook/demo/'));
+        $path = storage_path('fluidbook/demo/');
+        Files::rmdir($path);
+        Zip::extract($demo, $path);
     }
 
     /**