implement isLocal for shared storage

This commit is contained in:
Robin Appelman 2016-01-11 13:58:22 +01:00
parent df2abda814
commit af1e810607
1 changed files with 7 additions and 0 deletions

View File

@ -699,4 +699,11 @@ class Shared extends \OC\Files\Storage\Common implements ISharedStorage {
public function setAvailability($available) {
// shares do not participate in availability logic
}
public function isLocal() {
$this->init();
$ownerPath = $this->ownerView->getPath($this->share['item_source']);
list($targetStorage) = $this->ownerView->resolvePath($ownerPath);
return $targetStorage->isLocal();
}
}