diff --git a/lib/private/Files/Cache/Updater.php b/lib/private/Files/Cache/Updater.php index 561600d9b7ba1..85102a52c330c 100644 --- a/lib/private/Files/Cache/Updater.php +++ b/lib/private/Files/Cache/Updater.php @@ -120,6 +120,11 @@ public function update($path, $time = null, ?int $sizeDifference = null) { $sizeDifference = null; } + $appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data'; + if (str_starts_with($path, $appDataPath)) { + return; + } + // scanner didn't provide size info, fallback to full size calculation if ($this->cache instanceof Cache && $sizeDifference === null) { $this->cache->correctFolderSize($path, $data); @@ -147,6 +152,11 @@ public function remove($path) { $this->cache->remove($path); + $appDataPath = 'appdata_' . \OC_Util::getInstanceId() . '/end_to_end_encryption/meta-data'; + if (str_starts_with($path, $appDataPath)) { + return; + } + $this->correctParentStorageMtime($path); if ($entry instanceof ICacheEntry) { $this->propagator->propagateChange($path, time(), -$entry->getSize());