]> source.dussan.org Git - nextcloud-server.git/commitdiff
Switch scan to scanFile for root of mount points
authorMichael Gapczynski <mtgap@owncloud.com>
Fri, 11 Jan 2013 03:28:50 +0000 (22:28 -0500)
committerMichael Gapczynski <mtgap@owncloud.com>
Fri, 11 Jan 2013 03:28:50 +0000 (22:28 -0500)
lib/files/view.php

index 703cda5123ce8d0effbf05e44d1a7f142132a999..fa031b7478d627872322aa73cded21f0bf9a609f 100644 (file)
@@ -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('');