diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 12:14:39 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-02-24 12:14:39 +0100 |
commit | 4124d909b64c908ac481321ff9032ef5f09cf7ba (patch) | |
tree | 1fbebf28f405576890c621027a7c275f477cf943 | |
parent | fbc5a44f777d16f4ac7cb2892f263703f1fc6612 (diff) | |
parent | 8c77fdef3eac77474ff83a8fc179d38696e19ce0 (diff) | |
download | nextcloud-server-4124d909b64c908ac481321ff9032ef5f09cf7ba.tar.gz nextcloud-server-4124d909b64c908ac481321ff9032ef5f09cf7ba.zip |
Merge pull request #22565 from owncloud/avoid-scanning-root-storage
Avoids scanning the root storage
-rw-r--r-- | lib/private/files/utils/scanner.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/files/utils/scanner.php b/lib/private/files/utils/scanner.php index 59673a306cb..bc815f5f6da 100644 --- a/lib/private/files/utils/scanner.php +++ b/lib/private/files/utils/scanner.php @@ -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(); |