From 5d36da37176e1aa915e7e63a1a4689d5bd3e6990 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 20 Sep 2024 11:19:14 +0200 Subject: [PATCH] fix: ensure source folder is removed from cache when moving to objectstore otherwise this causes confusion down the line as it's contents will be moved to the new cache Signed-off-by: Robin Appelman --- lib/private/Files/ObjectStore/ObjectStoreStorage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index c9fbe11bbfa..7277c5b1e20 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -619,6 +619,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil $this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName()); } $sourceStorage->rmdir($sourceInternalPath); + $sourceStorage->getCache()->remove($sourceInternalPath); } else { $sourceStream = $sourceStorage->fopen($sourceInternalPath, 'r'); if (!$sourceStream) { -- 2.39.5