diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-09-19 21:42:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 21:42:12 +0200 |
commit | 8a8bbd4f9fc8b68f4cc73d50599b0f087612f0b9 (patch) | |
tree | dd110e68f73b5c665505d1c1a238f107a0ce4e27 /lib | |
parent | 9813cbf6164a81e1054d3225d135261bca260daa (diff) | |
parent | 47d281865ebd2527446ccff9435be2d09e28f59f (diff) | |
download | nextcloud-server-8a8bbd4f9fc8b68f4cc73d50599b0f087612f0b9.tar.gz nextcloud-server-8a8bbd4f9fc8b68f4cc73d50599b0f087612f0b9.zip |
Merge pull request #48222 from nextcloud/object-store-move-db
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index 26823f65c2f..2f1f91f7f22 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -604,8 +604,8 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil } 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 { |