diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-11 23:06:57 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-11 23:06:57 +0200 |
commit | 542869114ad67295d61450e637b15a1f4d3ae209 (patch) | |
tree | 69ecc25a69871ab995d996c08f64c7a5752d176b /apps/files_external/lib/swift.php | |
parent | fb2d2bc2011c371ff1e4334f84494f15a84a07a2 (diff) | |
download | nextcloud-server-542869114ad67295d61450e637b15a1f4d3ae209.tar.gz nextcloud-server-542869114ad67295d61450e637b15a1f4d3ae209.zip |
implement getId for the external storage providers
Diffstat (limited to 'apps/files_external/lib/swift.php')
-rw-r--r-- | apps/files_external/lib/swift.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files_external/lib/swift.php b/apps/files_external/lib/swift.php index 8d402b25212..61f58766e8e 100644 --- a/apps/files_external/lib/swift.php +++ b/apps/files_external/lib/swift.php @@ -11,6 +11,7 @@ require_once 'php-cloudfiles/cloudfiles.php'; namespace OC\Files\Storage; class SWIFT extends \OC\Files\Storage\Common{ + private $id; private $host; private $root; private $user; @@ -274,6 +275,8 @@ class SWIFT extends \OC\Files\Storage\Common{ $this->user=$params['user']; $this->root=isset($params['root'])?$params['root']:'/'; $this->secure=isset($params['secure'])?(bool)$params['secure']:true; + + $this->id = 'swift::' . $this->user . '@' . $this->host . '/' . $this->root; if(!$this->root || $this->root[0]!='/') { $this->root='/'.$this->root; } @@ -289,6 +292,10 @@ class SWIFT extends \OC\Files\Storage\Common{ } } + public function getId(){ + return $this->id; + } + public function mkdir($path) { if($this->containerExists($path)) { |