remove share mount

This commit is contained in:
Bjoern Schiessle 2014-05-27 15:07:53 +02:00 committed by Robin Appelman
parent dea5219244
commit 1b0b977678
1 changed files with 4 additions and 1 deletions

View File

@ -105,9 +105,12 @@ class SharedMount extends Mount implements MoveableMount {
/**
* Remove the mount points
*
* @return mixed
* @return bool
*/
public function removeMount() {
$storage = $this->getStorage();
$result = \OCP\Share::unshareFromSelf($storage->getItemType(), $storage->getMountPoint());
return $result;
}
}