From d6ac4d48d8b643ff3317b724a56f4b3362bf17c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Tue, 26 Dec 2023 21:09:42 +0100 Subject: [PATCH] Fix display of files/folders in scan command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- 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 5cd02d605..3b15d0844 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[2]++; + $statsRow[1]++; // 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[1]++; + $statsRow[2]++; // abortIfInterrupted doesn't exist in nc14 if (method_exists($this, 'abortIfInterrupted')) { $this->abortIfInterrupted();