]> source.dussan.org Git - nextcloud-server.git/commitdiff
reuse etag when doing a forced rescan
authorRobin Appelman <icewind@owncloud.com>
Fri, 14 Jun 2013 15:04:17 +0000 (17:04 +0200)
committerRobin Appelman <icewind@owncloud.com>
Wed, 19 Jun 2013 11:33:18 +0000 (13:33 +0200)
apps/files/ajax/scan.php

index 391b98608bdbbffa9a67c9ba3c6e0b79f88435eb..6659cd459c89f6dfbe208294fb40a85c6938faed 100644 (file)
@@ -24,7 +24,7 @@ foreach ($mountPoints as $mountPoint) {
                ScanListener::$mountPoints[$storage->getId()] = $mountPoint;
                $scanner = $storage->getScanner();
                if ($force) {
-                       $scanner->scan('');
+                       $scanner->scan('', \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG);
                } else {
                        $scanner->backgroundScan();
                }