From 25337d29bf2d63bbda9e89ba7f7bebb2c93aa9e0 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Fri, 20 Jun 2025 12:48:41 +0200 Subject: [PATCH] fix: scan command not reporting scanned files and folders Signed-off-by: Richard Steinmetz --- lib/Command/Scan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Command/Scan.php b/lib/Command/Scan.php index 0622365cb..5b1519e4e 100644 --- a/lib/Command/Scan.php +++ b/lib/Command/Scan.php @@ -98,7 +98,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int return -1; } - $scanner->listen(\OC\Files\Cache\Scanner::class, 'scanFile', function (string $path) use ($output, &$statsRow): void { + $scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function (string $path) use ($output, &$statsRow): void { $output->writeln("\tFile\t/$path", OutputInterface::VERBOSITY_VERBOSE); $statsRow[2]++; // abortIfInterrupted doesn't exist in nc14 @@ -107,7 +107,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int } }); - $scanner->listen(\OC\Files\Cache\Scanner::class, 'scanFolder', function (string $path) use ($output, &$statsRow): void { + $scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function (string $path) use ($output, &$statsRow): void { $output->writeln("\tFolder\t/$path", OutputInterface::VERBOSITY_VERBOSE); $statsRow[1]++; // abortIfInterrupted doesn't exist in nc14