From 68614936fe6b9ef2e7def91551e2eb959d199c63 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 20 Sep 2023 17:41:13 +0200 Subject: [PATCH] fix incorrect stat headers when scanning groupfolders fixes #2492 Signed-off-by: Robin Appelman --- 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 3b15d0844..5cd02d605 100644 --- a/lib/Command/Scan.php +++ b/lib/Command/Scan.php @@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { $scanner->listen('\OC\Files\Cache\Scanner', 'scanFile', function ($path) use ($output, &$statsRow) { $output->writeln("\tFile\t/$path", OutputInterface::VERBOSITY_VERBOSE); - $statsRow[1]++; + $statsRow[2]++; // abortIfInterrupted doesn't exist in nc14 if (method_exists($this, 'abortIfInterrupted')) { $this->abortIfInterrupted(); @@ -100,7 +100,7 @@ protected function execute(InputInterface $input, OutputInterface $output) { $scanner->listen('\OC\Files\Cache\Scanner', 'scanFolder', function ($path) use ($output, &$statsRow) { $output->writeln("\tFolder\t/$path", OutputInterface::VERBOSITY_VERBOSE); - $statsRow[2]++; + $statsRow[1]++; // abortIfInterrupted doesn't exist in nc14 if (method_exists($this, 'abortIfInterrupted')) { $this->abortIfInterrupted();