summaryrefslogtreecommitdiffstats
path: root/lib/files/view.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-01-10 22:28:50 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-01-10 22:28:50 -0500
commit4835525c469d5ac75104e92c2dfbbb049d62890c (patch)
treead4e31ff8d1225f54c911f0e84a8f850add9883f /lib/files/view.php
parentaa15fcf22f4c32026eca5ff8ae5e5df244f2c53e (diff)
downloadnextcloud-server-4835525c469d5ac75104e92c2dfbbb049d62890c.tar.gz
nextcloud-server-4835525c469d5ac75104e92c2dfbbb049d62890c.zip
Switch scan to scanFile for root of mount points
Diffstat (limited to 'lib/files/view.php')
-rw-r--r--lib/files/view.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/files/view.php b/lib/files/view.php
index 703cda5123c..fa031b7478d 100644
--- a/lib/files/view.php
+++ b/lib/files/view.php
@@ -768,9 +768,9 @@ class View {
if ($subStorage) {
$subCache = $subStorage->getCache('');
- if ($subCache->getStatus('') < Cache\Cache::COMPLETE) {
+ if ($subCache->getStatus('') === Cache\Cache::NOT_FOUND) {
$subScanner = $subStorage->getScanner('');
- $subScanner->scan('', Cache\Scanner::SCAN_SHALLOW);
+ $subScanner->scanFile('');
} else {
$subWatcher = $subStorage->getWatcher('');
$subWatcher->checkUpdate('');