diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index a6ba87896f4de..2b580686ba288 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -8,6 +8,7 @@ namespace OC\Files\Cache; use OC\DB\Exceptions\DbalException; +use OC\Files\Storage\LocalRootStorage; use OC\Files\Storage\Wrapper\Encryption; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Cache\IPropagator; @@ -68,6 +69,10 @@ public function propagateChange($internalPath, $time, $sizeDifference = 0) { $storageId = $this->storage->getStorageCache()->getNumericId(); $parents = $this->getParents($internalPath); + if ($this->storage->instanceOfStorage(LocalRootStorage::class) && str_starts_with($internalPath, '__groupfolders')) { + // Remove '' and '__groupfolders' + $parents = array_slice($parents, 2); + } if ($this->inBatch) { foreach ($parents as $parent) {