From 5fd22b6c909b89053f7b63912181546394bfdbfa 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 26823f65c2f0e..1810531ccb1e4 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -608,6 +608,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t $this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName()); } $sourceStorage->rmdir($sourceInternalPath); + $sourceStorage->getCache()->remove($sourceInternalPath); } else { $sourceStream = $sourceStorage->fopen($sourceInternalPath, 'r'); if (!$sourceStream) {