mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
perf: reuse cache info we already have when moving to object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
5f32c2f79f
commit
e8c8ab58f7
1 changed files with 2 additions and 2 deletions
|
|
@ -602,8 +602,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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue