From 5f6da758b725b644d5b4f39fb35543a7e0599dc8 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind@owncloud.com>
Date: Tue, 6 Jan 2015 15:27:03 +0100
Subject: [PATCH] Fix check if a path argument is passed to occ files:scan

---
 apps/files/command/scan.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index 7cf401c7b5..87f799a018 100644
--- a/apps/files/command/scan.php
+++ b/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);
-- 
GitLab