Skip to content

Commit

Permalink
Merge pull request #48222 from nextcloud/object-store-move-db
Browse files Browse the repository at this point in the history
  • Loading branch information
provokateurin authored Sep 19, 2024
2 parents 9813cbf + 47d2818 commit 8a8bbd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/private/Files/ObjectStore/ObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
}
if ($sourceCacheEntry->getMimeType() === FileInfo::MIMETYPE_FOLDER) {
$this->mkdir($targetInternalPath);
foreach ($sourceCache->getFolderContents($sourceInternalPath) as $child) {
$this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName());
foreach ($sourceCache->getFolderContentsById($sourceCacheEntry->getId()) as $child) {
$this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName(), $child);
}
$sourceStorage->rmdir($sourceInternalPath);
} else {
Expand Down

0 comments on commit 8a8bbd4

Please sign in to comment.