summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-25 14:53:38 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-25 14:53:38 +0200
commit8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1 (patch)
tree3f88b25f7ea35a12b464f48cfa1c08a1a2d2bf76 /lib
parent92f2a430a81f166a29779be7a7dc694d9f3efa67 (diff)
downloadnextcloud-server-8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1.tar.gz
nextcloud-server-8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1.zip
delete object without downloading it first
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/objectstore/swift.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/objectstore/swift.php b/lib/private/files/objectstore/swift.php
index 8957c8fd571..71aae23bb5a 100644
--- a/lib/private/files/objectstore/swift.php
+++ b/lib/private/files/objectstore/swift.php
@@ -135,8 +135,8 @@ class Swift implements IObjectStore {
*/
public function deleteObject($urn) {
$this->init();
- $object = $this->container->getObject($urn);
- $object->delete();
+ // see https://github.com/rackspace/php-opencloud/issues/243#issuecomment-30032242
+ $this->container->dataObject()->setName($urn)->delete();
}
public function deleteContainer($recursive = false) {