From 1177ad7bb90c94a5c76c03d0b77ba3db5c7577ad Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Sun, 14 Oct 2018 18:38:23 +0200 Subject: Remove quiet and verbose from Command/Scan Signed-off-by: Daniel Kesselberg --- apps/files/lib/Command/Scan.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'apps/files/lib/Command') 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 @@ -76,18 +76,6 @@ class Scan extends Base { InputArgument::OPTIONAL, '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, @@ -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$path", OutputInterface::VERBOSITY_VERBOSE); -- cgit v1.2.3