diff options
author | Robin Appelman <robin@icewind.nl> | 2024-09-20 11:19:14 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2025-02-13 17:31:51 +0100 |
commit | 9fd7dfd1c2abfda400baa6ba70f57b0362d0966b (patch) | |
tree | 7dad7cf94decf76c936c51f3e18ae3bc08ec2a2e | |
parent | 35847fb2c116c2dbf6c910e6ad0533e73800ab30 (diff) | |
download | nextcloud-server-9fd7dfd1c2abfda400baa6ba70f57b0362d0966b.tar.gz nextcloud-server-9fd7dfd1c2abfda400baa6ba70f57b0362d0966b.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>
-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 0d4e59e92a4..e746e000a00 100644 --- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php +++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php @@ -611,6 +611,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) { |