diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-20 11:19:14 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-09-27 14:45:42 +0200 |
commit | da21acfb3ff5c6c7b8e1298cdefb5f17b10a6aab (patch) | |
tree | 6e1617d78ae777b5aad2f2ae41f6961c4c62e054 /lib | |
parent | a5f8a2625f2fd681e6b3ffb45ab25f90e8583873 (diff) | |
download | nextcloud-server-da21acfb3ff5c6c7b8e1298cdefb5f17b10a6aab.tar.gz nextcloud-server-da21acfb3ff5c6c7b8e1298cdefb5f17b10a6aab.zip |
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 <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/ObjectStore/ObjectStoreStorage.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php index c44b5b299ed..88309993137 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -602,6 +602,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil $this->moveFromStorage($sourceStorage, $child->getPath(), $targetInternalPath . '/' . $child->getName(), $child); } $sourceStorage->rmdir($sourceInternalPath); + $sourceStorage->getCache()->remove($sourceInternalPath); } else { $sourceStream = $sourceStorage->fopen($sourceInternalPath, 'r'); if (!$sourceStream) { |