diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-25 14:53:38 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-25 14:53:38 +0200 |
commit | 8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1 (patch) | |
tree | 3f88b25f7ea35a12b464f48cfa1c08a1a2d2bf76 /lib | |
parent | 92f2a430a81f166a29779be7a7dc694d9f3efa67 (diff) | |
download | nextcloud-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.php | 4 |
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) { |