AmazonS3RequestManager icon indicating copy to clipboard operation
AmazonS3RequestManager copied to clipboard

S3BucketObjectList when using a delimiter doesn't extract the files correctly.

Open morgz opened this issue 8 years ago • 2 comments

S3BucketObjectList Currently uses this method to parse the files: parseContents(xml["ListBucketResult"]["Contents"])

However, if you use a delimiter your results are here: xml["ListBucketResult"]["CommonPrefixes"]

Therefore, if i've understood it correctly, using a delimiter with the current library doesn't return any results.

morgz avatar Nov 21 '16 19:11 morgz

In my case it's a folder containing other folders, not files.

It may well be that: parseContents(xml["ListBucketResult"]["Contents"])

Does actually work for files & my use case of listing folders isn't appropriate for this method.

morgz avatar Nov 21 '16 19:11 morgz

Thanks, I can look into this when I get some time, but if you have a fix, I'd appreciate a PR!

AnthonyMDev avatar Nov 23 '16 18:11 AnthonyMDev