def upload(self): self.checks() logging.info(f"Uploading to container {self.destination} with method = '{self.method}'.") if self.method == "batch": return self.upload_batch() else: return self.upload_single()