def upload(self, container_name, treasures): """ Upload file to specify container. :param container_name: Fullpath to the folder to store the objects in. Started at container. :param objects_to_upload: A list of treasure to upload. :returns: List of ChestResult objects each represent the result of an upload. """ upload_result = self.service.upload( container_name, [SwiftUploadObject(source=it.source, object_name=it.object_name) for it in treasures]) return self.convert_result_list( self.populate_result, upload_result, ChestResult.action_upload_object)