def folder_upload(self, folder, s3_bucket, s3_key): file = Files.zip_folder(folder) self.file_upload(file, s3_bucket, s3_key) os.remove(file) return self
def __enter__(self): if Files.exists(self.target_folder): self.zip_file = Files.zip_folder(self.target_folder) return self.zip_file