diff --git a/apps/files/command/scan.php b/apps/files/command/scan.php
index 7cf401c7b59318dc1c11b37121c90cce6b4e76b7..87f799a01871ac3966f1fe9554f55d39e156c9f1 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);