diff --git a/lib/BackgroundJob/BackgroundScanner.php b/lib/BackgroundJob/BackgroundScanner.php index 4490bcd3..f02c8be3 100644 --- a/lib/BackgroundJob/BackgroundScanner.php +++ b/lib/BackgroundJob/BackgroundScanner.php @@ -214,6 +214,7 @@ public function getUnscannedFiles() { $query->expr()->like('path', $query->createNamedParameter('files/%')), $query->expr()->notLike('s.id', $query->createNamedParameter('home::%')) )) + ->andWhere($query->expr()->notLike('fc.path', $query->createNamedParameter('appdata_%'))) ->andWhere($this->getSizeLimitExpression($query)) ->setMaxResults($this->getBatchSize() * 10);