I have
data = list(bucket.objects)
this will get me all of the objects in my aws s3 bucket
I want to be able to get only certain file types, such as a .png file.
i tried doing something like
data = list(bucket.objects.filter(Prefix = '*.png'))
but no luck. Any tips?