summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-10-31 17:33:33 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-12-04 13:44:30 +0100
commit7ef6df04da739af651afdcdbda6ccb095d1a90f7 (patch)
tree4bec1555ed4e340fe43bc4e51194735e123c5c5b /lib
parentc5ee95a49e51565a3cd9ecf3769488e19db0ec2b (diff)
downloadnextcloud-server-7ef6df04da739af651afdcdbda6ccb095d1a90f7.tar.gz
nextcloud-server-7ef6df04da739af651afdcdbda6ccb095d1a90f7.zip
remove triggerupdate, ref #11872
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/utils/scanner.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php
index adb66497be0..a0b06328579 100644
--- a/lib/private/files/utils/scanner.php
+++ b/lib/private/files/utils/scanner.php
@@ -114,7 +114,7 @@ class Scanner extends PublicEmitter {
* @param string $dir
* @throws \OC\ForbiddenException
*/
- public function scan($dir) {
+ public function scan($dir = '') {
$mounts = $this->getMounts($dir);
foreach ($mounts as $mount) {
if (is_null($mount->getStorage())) {
@@ -131,7 +131,7 @@ class Scanner extends PublicEmitter {
$scanner->setUseTransactions(false);
$this->attachListener($mount);
$this->db->beginTransaction();
- $scanner->scan('', \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE);
+ $scanner->scan($dir, \OC\Files\Cache\Scanner::SCAN_RECURSIVE, \OC\Files\Cache\Scanner::REUSE_ETAG | \OC\Files\Cache\Scanner::REUSE_SIZE);
$this->db->commit();
}
$this->propagator->propagateChanges(time());