def cleanup(self): print("Deleting the following files:\n%s" % "\n".join(self.delete)) S3.delete_objects( Bucket=self.bucket, Delete={ "Objects": [{"Key": k} for k in self.delete], } )
def cleanup(self): print("Deleting the following files:\n%s" % "\n".join(self.delete)) S3.delete_objects(Bucket=self.bucket, Delete={ "Objects": [{ "Key": k } for k in self.delete], })
def _s3_copy(self, old_path, new_path): source = "%s/%s" % (self.bucket, old_path) S3.copy_object(Bucket=self.bucket, Key=new_path, CopySource=source)