Closed suhastech closed 11 years ago
Thanks for your PR. I'm thinking what to do with that. Do you think it's possible to make it more general? Is there an API call for listing objects with a common "suffix", etc.?
Hmm.. I don't think S3 has an API explicitly for that.
By "suffix", I guess you'd want to find the objects with same filenames (or ending path)? I'm wondering what the use case would be to make such a query.
PS: I found this at: http://amazon.rubyforge.org/doc/classes/AWS/S3/Bucket.html#M000069
Ok.
It'd be much better to add a hash parameter to "objects" method instead of creating a new method for every param that API supports. Could you implement that?
This should do?
Done.
This feature is not documented.
http://rubydoc.info/github/qoobaa/s3/master/S3/Bucket:objects
- (Object) objects
True.
I think this should work. I haven't written tests for now.
Let me know what you think.
Regards, Suhas