aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-10-14 18:38:23 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-10-21 22:15:10 +0200
commit1177ad7bb90c94a5c76c03d0b77ba3db5c7577ad (patch)
treeb1df26c250ee001d547bd594e57d75ee80585dd0 /apps/files
parent816fbf9b9f7a8b0d778f62ff5a988c3719d92646 (diff)
downloadnextcloud-server-1177ad7bb90c94a5c76c03d0b77ba3db5c7577ad.tar.gz
nextcloud-server-1177ad7bb90c94a5c76c03d0b77ba3db5c7577ad.zip
Remove quiet and verbose from Command/Scan
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Command/Scan.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/apps/files/lib/Command/Scan.php b/apps/files/lib/Command/Scan.php
index 6b73382d5d8..4d83d764928 100644
--- a/apps/files/lib/Command/Scan.php
+++ b/apps/files/lib/Command/Scan.php
@@ -77,18 +77,6 @@ class Scan extends Base {
'limit rescan to this path, eg. --path="/alice/files/Music", the user_id is determined by the path and the user_id parameter and --all are ignored'
)
->addOption(
- 'quiet',
- 'q',
- InputOption::VALUE_NONE,
- 'suppress any output'
- )
- ->addOption(
- 'verbose',
- '-v|vv|vvv',
- InputOption::VALUE_NONE,
- 'verbose the output'
- )
- ->addOption(
'all',
null,
InputOption::VALUE_NONE,
@@ -123,8 +111,8 @@ class Scan extends Base {
protected function scanFiles($user, $path, OutputInterface $output, $backgroundScan = false, $recursive = true, $homeOnly = false) {
$connection = $this->reconnectToDatabase($output);
$scanner = new \OC\Files\Utils\Scanner($user, $connection, \OC::$server->getLogger());
+
# check on each file/folder if there was a user interrupt (ctrl-c) and throw an exception
- # printout and count
$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', function ($path) use ($output) {
$output->writeln("\tFile\t<info>$path</info>", OutputInterface::VERBOSITY_VERBOSE);