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();