From 88498ba37ea913f4617a5ac4b11c1a45344c6ad4 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Wed, 13 Nov 2024 15:56:05 +0100 Subject: [PATCH] fixup! fix: ignore files in appdata when counting unscanned files --- lib/BackgroundJob/BackgroundScanner.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/BackgroundJob/BackgroundScanner.php b/lib/BackgroundJob/BackgroundScanner.php index 5db3f54d..d60fb98b 100644 --- a/lib/BackgroundJob/BackgroundScanner.php +++ b/lib/BackgroundJob/BackgroundScanner.php @@ -22,6 +22,7 @@ use OCP\Files\IMimeTypeLoader; use OCP\Files\IRootFolder; use OCP\Files\Node; +use OCP\IConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; @@ -35,6 +36,7 @@ class BackgroundScanner extends TimedJob { protected ItemFactory $itemFactory; private IUserMountCache $userMountCache; private IEventDispatcher $eventDispatcher; + private IConfig $config; private bool $isCLI; public function __construct( @@ -48,6 +50,7 @@ public function __construct( ItemFactory $itemFactory, IUserMountCache $userMountCache, IEventDispatcher $eventDispatcher, + IConfig $config, bool $isCLI ) { parent::__construct($timeFactory); @@ -60,6 +63,7 @@ public function __construct( $this->itemFactory = $itemFactory; $this->userMountCache = $userMountCache; $this->eventDispatcher = $eventDispatcher; + $this->config = $config; $this->isCLI = $isCLI; // Run once per 15 minutes