From 8e6cb6dc54f4b21031cc467ad7aadeb8c677acd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Wed, 25 Jun 2014 14:53:38 +0200 Subject: [PATCH] delete object without downloading it first --- lib/private/files/objectstore/swift.php | 4 ++-- 1 file 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) { -- 2.39.5