Merge pull request #22565 from owncloud/avoid-scanning-root-storage
Avoids scanning the root storage
This commit is contained in:
commit
4124d909b6
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ class Scanner extends PublicEmitter {
|
|||
if (is_null($mount->getStorage())) {
|
||||
continue;
|
||||
}
|
||||
// don't scan the root storage
|
||||
if ($mount->getStorage()->instanceOfStorage('\OC\Files\Storage\Local') && $mount->getMountPoint() === '/') {
|
||||
continue;
|
||||
}
|
||||
$scanner = $mount->getStorage()->getScanner();
|
||||
$this->attachListener($mount);
|
||||
$scanner->backgroundScan();
|
||||
|
|
Loading…
Reference in a new issue