Fix removing remote shares

This commit is contained in:
Robin Appelman 2014-05-15 12:13:46 +02:00 committed by Bjoern Schiessle
parent 1c149da52f
commit a900c7aa94
1 changed files with 18 additions and 0 deletions

View File

@ -88,4 +88,22 @@ class Storage extends \OC\Files\Storage\DAV implements ISharedStorage {
return false;
}
}
public function unlink($path) {
if ($path === '' || $path === false) {
$this->manager->removeShare($this->mountPoint);
return true;
} else {
return parent::unlink($path);
}
}
public function rmdir($path) {
if ($path === '' || $path === false) {
$this->manager->removeShare($this->mountPoint);
return true;
} else {
return parent::rmdir($path);
}
}
}