Merge pull request #22565 from owncloud/avoid-scanning-root-storage

Avoids scanning the root storage
This commit is contained in:
Thomas Müller 2016-02-24 12:14:39 +01:00
commit 4124d909b6

View file

@ -119,6 +119,10 @@ class Scanner extends PublicEmitter {
if (is_null($mount->getStorage())) { if (is_null($mount->getStorage())) {
continue; continue;
} }
// don't scan the root storage
if ($mount->getStorage()->instanceOfStorage('\OC\Files\Storage\Local') && $mount->getMountPoint() === '/') {
continue;
}
$scanner = $mount->getStorage()->getScanner(); $scanner = $mount->getStorage()->getScanner();
$this->attachListener($mount); $this->attachListener($mount);
$scanner->backgroundScan(); $scanner->backgroundScan();