Skip to content
Snippets Groups Projects
Commit a900c7aa authored by Robin Appelman's avatar Robin Appelman Committed by Bjoern Schiessle
Browse files

Fix removing remote shares

parent 1c149da5
Branches
No related tags found
No related merge requests found
......@@ -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);
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment