summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-02-10 18:07:21 +0100
committerGitHub <noreply@github.com>2022-02-10 18:07:21 +0100
commit787716613fcc8c64a17ca0bfc2d9d0963de26762 (patch)
tree70a0add1583fff4af6b8d324e15c008c95340492
parent6f32be1cf6e7ed8cba1e49e8c27feb0ff3b722c9 (diff)
parent9476ce70ed326304afeb9b5aab3a412b4f1acaaa (diff)
downloadnextcloud-server-787716613fcc8c64a17ca0bfc2d9d0963de26762.tar.gz
nextcloud-server-787716613fcc8c64a17ca0bfc2d9d0963de26762.zip
Merge pull request #31035 from paierlep/fix/occ_scan_no_files_error
Removes misleading error message in occ files:scan for new users.
-rw-r--r--lib/private/Files/Utils/Scanner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Utils/Scanner.php b/lib/private/Files/Utils/Scanner.php
index 2e5a25a355b..5b633617608 100644
--- a/lib/private/Files/Utils/Scanner.php
+++ b/lib/private/Files/Utils/Scanner.php
@@ -216,7 +216,7 @@ class Scanner extends PublicEmitter {
if ($storage->instanceOfStorage('\OC\Files\Storage\Home') and
(!$storage->isCreatable('') or !$storage->isCreatable('files'))
) {
- if ($storage->file_exists('') or $storage->getCache()->inCache('')) {
+ if ($storage->is_dir('files')) {
throw new ForbiddenException();
} else {// if the root exists in neither the cache nor the storage the user isn't setup yet
break;