Listing contents of a bucket with boto3

One way to see the contents would be:

for my_bucket_object in my_bucket.objects.all():
    print(my_bucket_object)

Leave a Comment