From b383d2e666c61d55b629439481c03139955b5112 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 14:21:21 +0200 Subject: [PATCH] wip #5184 --- app/Jobs/ProcessFluidbook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Jobs/ProcessFluidbook.php b/app/Jobs/ProcessFluidbook.php index fa9bf72..7acc03f 100644 --- a/app/Jobs/ProcessFluidbook.php +++ b/app/Jobs/ProcessFluidbook.php @@ -52,7 +52,7 @@ class ProcessFluidbook extends Compiler $spl = new \SplFileInfo($path); $fname = $spl->getFilename(); if (file_exists($path)) { - copy($path, $this->wdir . $fname); + Files::copyFile($path, $this->wdir . $fname); } if (stripos($path, '.mp4') !== false) { @@ -61,7 +61,7 @@ class ProcessFluidbook extends Compiler $poster = $posterMedia->getPath('poster'); if (file_exists($poster)) { $dest = $this->wdir . str_replace('.mp4', '.jpg', $fname); - copy($poster, $dest); + Files::copyFile($poster, $dest); } } @@ -117,7 +117,7 @@ class ProcessFluidbook extends Compiler /** @var $item Media */ $dest = $tmp . '/' . Files::getFilename($path); if (file_exists($path)) { - copy($path, $dest); + Files::copyFile($path, $dest); } } Zip::archive($tmp, $zip); -- 2.39.5