AnthonyMDev / AmazonS3RequestManager

A request manager that uses Alamofire to serialize requests to the AWS S3 (Amazon Simple Storage Solution). Based on AFAmazonS3Manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

morgz opened this issue · 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.

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.

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