We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0888361 commit c00d933Copy full SHA for c00d933
lib/OpenCloud/ObjectStore/Resource/Container.php
@@ -180,8 +180,8 @@ public function delete($deleteObjects = false)
180
public function deleteWithObjects($secondsToWait = null)
181
{
182
// If container is empty, just delete it
183
- $numObjects = $this->getObjectCount();
184
- if ($numObjects === 0) {
+ $numObjects = (int) $this->retrieveMetadata()->getProperty('Object-Count');
+ if (0 === $numObjects) {
185
return $this->delete();
186
}
187
// If timeout ($secondsToWait) is not specified by caller,
0 commit comments