I need to list all files contained in a certain folder contained in my S3 bucket.
The folder structure is the following
/my-bucket/users/
you can check the type. s3 has a special application/x-directory
bucket.objects({:delimiter=>"/", :prefix=>"f1/"}).each { |obj| p obj.object.content_type }