Skip to content
Snippets Groups Projects
Commit 47eb0c59 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #13128 from owncloud/files-scan-path

Fix check if a path argument is passed to occ files:scan
parents fe459293 5f6da758
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ class Scan extends Command {
protected function execute(InputInterface $input, OutputInterface $output) {
$path = $input->getOption('path');
if ($path !== false) {
if ($path) {
$path = '/'.trim($path, '/');
list (, $user, ) = explode('/', $path, 3);
$users = array($user);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment