Add occ preview:migrate to migrate previews from the old flat structure to a subfolder structure
public function getFolder(string $name): ISimpleFolder {
- $internalFolder = $this->getInternalFolder($name);
+ $internalFolder = self::getInternalFolder($name);
+ if ($this->isMultibucketPreviewDistributionEnabled) {
+ try {
+ return parent::getFolder('old-multibucket/' . $internalFolder);
+ } catch (NotFoundException $e) {
+ // not in multibucket fallback
+ }
+ }
+
try {
return parent::getFolder($internalFolder);
} catch (NotFoundException $e) {