Fix removing remote shares
This commit is contained in:
parent
1c149da52f
commit
a900c7aa94
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue