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

Fix check if a path argument is passed to occ files:scan
remotes/origin/fix-10825
Thomas Müller 12 years ago
commit 47eb0c59e6
  1. 2
      apps/files/command/scan.php

@ -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);

Loading…
Cancel
Save