diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-12-19 19:53:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-01-10 16:14:21 +0100 |
commit | 00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca (patch) | |
tree | 86ec6649479e1f31ee363cd0156700b50eae204b /lib | |
parent | 706655ef2000f00c66aa1c4387ab9fa7f60cc537 (diff) | |
download | nextcloud-server-00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca.tar.gz nextcloud-server-00b17c3af5544b01d7834aa4c8a95c7b3bbf95ca.zip |
Only check for local shared storages
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Utils/Scanner.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Utils/Scanner.php b/lib/private/Files/Utils/Scanner.php index 3794e316dfe..98e2c3c8ca2 100644 --- a/lib/private/Files/Utils/Scanner.php +++ b/lib/private/Files/Utils/Scanner.php @@ -31,6 +31,7 @@ use OC\Files\Filesystem; use OC\ForbiddenException; use OC\Hooks\PublicEmitter; use OC\Lock\DBLockingProvider; +use OCA\Files_Sharing\SharedStorage; use OCP\Files\Storage\IStorage; use OCP\Files\StorageNotAvailableException; use OCP\ILogger; @@ -128,7 +129,7 @@ class Scanner extends PublicEmitter { } // don't scan received local shares, these can be scanned when scanning the owner's storage - if ($storage->instanceOfStorage('OCA\Files_Sharing\ISharedStorage')) { + if ($storage->instanceOfStorage(SharedStorage::class)) { continue; } $scanner = $storage->getScanner(); @@ -178,7 +179,7 @@ class Scanner extends PublicEmitter { } // don't scan received local shares, these can be scanned when scanning the owner's storage - if ($storage->instanceOfStorage('OCA\Files_Sharing\ISharedStorage')) { + if ($storage->instanceOfStorage(SharedStorage::class)) { continue; } $relativePath = $mount->getInternalPath($dir); |