Skip to content

Commit 59d3300

Browse files
authored
Merge pull request #58425 from nextcloud/chore/delete-empty-preview-dirs
chore(previews): delete empty previews directory during migration
2 parents 142aac4 + 6727f83 commit 59d3300

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/private/Preview/PreviewMigrationService.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ public function migrateFileId(int $fileId, bool $flatPath): array {
8282
}
8383

8484
if (empty($previewFiles)) {
85+
$this->deleteFolder($internalPath);
86+
8587
return $previews;
8688
}
8789

0 commit comments

Comments
 (0)