diff options
-rw-r--r-- | apps/files_sharing/lib/external/storage.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php index 2683a6a6902..0e799a0e9e3 100644 --- a/apps/files_sharing/lib/external/storage.php +++ b/apps/files_sharing/lib/external/storage.php @@ -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); + } + } } |