diff options
author | Kate <26026535+provokateurin@users.noreply.github.com> | 2024-09-20 23:02:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 23:02:25 +0200 |
commit | 61f3a09dcd5d069d16b6cb3717e8e9b6e4014baa (patch) | |
tree | 5a0efda7cec33311ffedee3ddb95e64b8ee25f3e /lib | |
parent | 69ca7c13ec7338a739d9b87fd0826cd545f09dca (diff) | |
parent | e8c8ab58f797f6aa5e7375f6e64da52a3397d464 (diff) | |
download | nextcloud-server-61f3a09dcd5d069d16b6cb3717e8e9b6e4014baa.tar.gz nextcloud-server-61f3a09dcd5d069d16b6cb3717e8e9b6e4014baa.zip |
Merge pull request #48233 from nextcloud/backport/48222/stable30
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 cb0ec80b75c..0d4e59e92a4 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -607,8 +607,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 { |