aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-10-22 14:29:49 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-10-22 14:29:49 +0200
commit1ad42e8f81dd6f94c205af9cd3b5cb347f803dd4 (patch)
tree52fa44412c247f8ff5eb9466fb2d773cc335d958 /apps
parent2422dfe6196ade23240d14200056d692bf9118ff (diff)
downloadnextcloud-server-1ad42e8f81dd6f94c205af9cd3b5cb347f803dd4.tar.gz
nextcloud-server-1ad42e8f81dd6f94c205af9cd3b5cb347f803dd4.zip
Revert changes not related to $verbose
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/lib/Command/ScanAppData.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php
index ec4bca43255..04c347afe6b 100644
--- a/apps/files/lib/Command/ScanAppData.php
+++ b/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'