Has anyone had any success reading S3 buckets as subfolders?
folder1
-- subfolder2
---- file3
---- file4
-- file1
-- file2
folder2
-- subfolder3
-- file5
-- file6
My task is to read folder1. I expect to see subfolder2, file1 and file2, but NOT file3 or file4. Right now, because I restrict the bucket keys to prefix => 'folder1/', you still get file3 and 4 since they technically have the folder1 prefix.
It seems the only way to really do this is suck in all the keys under folder1 and then use string searching to actually exclude file3 and file4 from your results array.
Has anyone had experience doing this? I know FTP-style S3 clients like Transmit and Cyberduck must be doing this but it's not apparent from the S3 API itself.
Thanks ahead, Conrad
I've looked into both AWS::S3 and right_aws.