From 307421cf63270aa14337c1abc6c5ede42b661eeb Mon Sep 17 00:00:00 2001 From: David mattei Date: Wed, 11 Dec 2024 08:41:06 +0100 Subject: [PATCH] fix(web/local): upload assets heads returns true --- .../src/Command/Local/UploadAssetsCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php b/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php index 38bedb86a..e0b167aca 100644 --- a/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php +++ b/EMS/client-helper-bundle/src/Command/Local/UploadAssetsCommand.php @@ -147,6 +147,11 @@ private function uploadEmsArchive(): string $archive = Archive::fromDirectory($directory, $algo); $progressBar = $this->io->createProgressBar($archive->getCount()); foreach ($this->coreApi->file()->heads(...$archive->getHashes()) as $hash) { + if (true === $hash) { + $progressBar->advance(); + continue; + } + $file = $archive->getFirstFileByHash($hash); $uploadHash = $this->coreApi->file()->uploadFile($directory.DIRECTORY_SEPARATOR.$file->filename); if ($uploadHash !== $hash) {