Skip to content

Commit

Permalink
Merge pull request #2570 from nextcloud/scan-stat-headers
Browse files Browse the repository at this point in the history
fix incorrect stat headers when scanning groupfolders
  • Loading branch information
skjnldsv authored Sep 20, 2023
2 parents 42a74a0 + 6861493 commit 16c066e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Command/Scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<info>/$path</info>", OutputInterface::VERBOSITY_VERBOSE);
$statsRow[1]++;
$statsRow[2]++;
// abortIfInterrupted doesn't exist in nc14
if (method_exists($this, 'abortIfInterrupted')) {
$this->abortIfInterrupted();
Expand All @@ -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<info>/$path</info>", OutputInterface::VERBOSITY_VERBOSE);
$statsRow[2]++;
$statsRow[1]++;
// abortIfInterrupted doesn't exist in nc14
if (method_exists($this, 'abortIfInterrupted')) {
$this->abortIfInterrupted();
Expand Down

0 comments on commit 16c066e

Please sign in to comment.