diff --git a/lib/private/Files/Cache/Propagator.php b/lib/private/Files/Cache/Propagator.php index fdd926d89ac5a..bffdfbe72bb09 100644 --- a/lib/private/Files/Cache/Propagator.php +++ b/lib/private/Files/Cache/Propagator.php @@ -10,6 +10,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\ILiteral; use OCP\DB\QueryBuilder\IQueryBuilder; @@ -51,6 +52,10 @@ public function propagateChange(string $internalPath, int $time, int $sizeDiffer $storageId = $this->storage->getCache()->getNumericStorageId(); $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) {