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 <[email protected]>
  • Loading branch information
icewind1991 authored and Altahrim committed Oct 2, 2024
1 parent 002a980 commit dfeca3e
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 @@ -619,6 +619,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) {
Expand Down

0 comments on commit dfeca3e

Please sign in to comment.