+ def object_exists(self, location):
+ """Check if an object exists in pythos"""
+
+ try:
+ self.pithos_client.get_object_info(location)
+ except ClientError as e:
+ if e.status == 404: # Object not found error
+ return False
+ else:
+ raise
+ return True
+