aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/external/storage.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/external/storage.php')
-rw-r--r--apps/files_sharing/lib/external/storage.php33
1 files changed, 2 insertions, 31 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 741e219eff7..89d2f5e6669 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -9,9 +9,10 @@
namespace OCA\Files_Sharing\External;
use OC\Files\Filesystem;
+use OC\Files\Storage\DAV;
use OCA\Files_Sharing\ISharedStorage;
-class Storage extends \OC\Files\Storage\DAV implements ISharedStorage {
+class Storage extends DAV implements ISharedStorage {
/**
* @var string
*/
@@ -101,34 +102,4 @@ class Storage extends \OC\Files\Storage\DAV implements ISharedStorage {
}
return $this->scanner;
}
-
- public function rename($path1, $path2) {
- // if we renamed the mount point we need to adjust the mountpoint in the database
- if (Filesystem::normalizePath($this->mountPoint) === Filesystem::normalizePath($path1)) {
- $this->manager->setMountPoint($path1, $path2);
- $this->mountPoint = $path2;
- return true;
- } else {
- // read only shares
- 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);
- }
- }
}