I wanted to show a list of all files in an s3 folder so I can get all the last modified dates so I can determine what files has been changed.
I tried using objects.w
Too late answer but better than never.
You can do
s3_bucket.objects.with_prefix('folder_name').collect(&:key)
According to official documentation here