Revert changes not related to $verbose

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/11968/head
Daniel Kesselberg 8 years ago
parent 2422dfe619
commit 1ad42e8f81
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 8
      apps/files/lib/Command/ScanAppData.php

@ -86,13 +86,13 @@ class ScanAppData extends Base {
# check on each file/folder if there was a user interrupt (ctrl-c) and throw an exception
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
$output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
$output->writeln("\tFile <info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
++$this->filesCounter;
$this->abortIfInterrupted();
});
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', function ($path) use ($output) {
$output->writeln("\tFolder\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
$output->writeln("\tFolder <info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);
++$this->foldersCounter;
$this->abortIfInterrupted();
});
@ -132,12 +132,11 @@ class ScanAppData extends Base {
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
}
$output->writeln('Scanning AppData for files');
$output->writeln("\nScanning AppData for files");
$this->initTools();
$this->scanFiles($output);
$output->writeln('', OutputInterface::VERBOSITY_VERBOSE);
$this->presentStats($output);
}
@ -178,6 +177,7 @@ class ScanAppData extends Base {
protected function presentStats(OutputInterface $output) {
// Stop the timer
$this->execTime += microtime(true);
$output->writeln("");
$headers = [
'Folders', 'Files', 'Elapsed time'

Loading…
Cancel
Save