Improve isLocal performance for SharedStorage

This commit is contained in:
Robin Appelman 2016-05-25 13:40:34 +02:00
parent a9c8eee15c
commit 35c32ca721
1 changed files with 1 additions and 3 deletions

View File

@ -737,9 +737,7 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
public function isLocal() {
$this->init();
$ownerPath = $this->ownerView->getPath($this->share['item_source']);
list($targetStorage) = $this->ownerView->resolvePath($ownerPath);
return $targetStorage->isLocal();
return $this->sourceStorage->isLocal();
}
public function getSourceStorage() {