From fa26f6e98916e47687815ea337ac82cafd42d440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 30 Aug 2018 14:59:18 -0400 Subject: [PATCH] add warning about not copying acl rules --- s3utils/rename_builds.py | 1 + 1 file changed, 1 insertion(+) diff --git a/s3utils/rename_builds.py b/s3utils/rename_builds.py index 2e0aad8..71f9f5f 100644 --- a/s3utils/rename_builds.py +++ b/s3utils/rename_builds.py @@ -21,5 +21,6 @@ for f in s3.list_objects_v2(Bucket=BUCKET)['Contents']: dots = name.count('.') new_name = name.replace('.', '-', dots-1) print('{:<30} -> {}'.format(name, new_name)) + # WARNING: This does not copy ACL rules! s3.copy({'Bucket': BUCKET, 'Key': name}, BUCKET, new_name) s3.delete_object(Bucket=BUCKET, Key=name)