Skip to content

Instantly share code, notes, and snippets.

@rafaeldalsenter
Created April 3, 2020 01:32
Show Gist options
  • Select an option

  • Save rafaeldalsenter/8f07d25f8f64ed0b51fa0ae8af8370f3 to your computer and use it in GitHub Desktop.

Select an option

Save rafaeldalsenter/8f07d25f8f64ed0b51fa0ae8af8370f3 to your computer and use it in GitHub Desktop.
print('Source Bucket:', bucketNameSource)
print('Target archive:', bucketNameDest + '/' + archiveNameDest)
objects = aws_ext.all_objects_from_bucket(bucketNameSource)
count_objects = aws_ext.count_objects(objects)
amount_objects = amountOfFilesToUpload
if(amount_objects == 0):
amount_objects = count_objects
print("Source bucket files count:", count_objects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment