From 7ef6df04da739af651afdcdbda6ccb095d1a90f7 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Fri, 31 Oct 2014 17:33:33 +0100 Subject: remove triggerupdate, ref #11872 --- lib/private/files/utils/scanner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/files/utils/scanner.php') 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()); -- cgit v1.2.3