delete object without downloading it first
This commit is contained in:
parent
92f2a430a8
commit
8e6cb6dc54
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue