Skip to content

Commit

Permalink
fix: ensure source folder is removed from cache when moving to object…
Browse files Browse the repository at this point in the history
…store

otherwise this causes confusion down the line as it's contents will be moved to the new cache

Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Sep 25, 2024
1 parent 4360c4d commit 26f50f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/private/Files/ObjectStore/ObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,7 @@ public function moveFromStorage(IStorage $sourceStorage, $sourceInternalPath, $t
$this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName(), $child);
}
$sourceStorage->rmdir($sourceInternalPath);
$sourceStorage->getCache()->remove($sourceInternalPath);
} else {
$sourceStream = $sourceStorage->fopen($sourceInternalPath, 'r');
if (!$sourceStream) {
Expand Down

0 comments on commit 26f50f7

Please sign in to comment.