Skip to content
Snippets Groups Projects
Commit 398fe8bf authored by Robin Appelman's avatar Robin Appelman
Browse files

reuse etag when doing a forced rescan

parent f10a4db8
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ foreach ($mountPoints as $mountPoint) { ...@@ -24,7 +24,7 @@ foreach ($mountPoints as $mountPoint) {
ScanListener::$mountPoints[$storage->getId()] = $mountPoint; ScanListener::$mountPoints[$storage->getId()] = $mountPoint;
$scanner = $storage->getScanner(); $scanner = $storage->getScanner();
if ($force) { if ($force) {
$scanner->scan(''); $scanner->scan('', \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG);
} else { } else {
$scanner->backgroundScan(); $scanner->backgroundScan();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment