diff --git a/src/xml-parsers.js b/src/xml-parsers.js index 20b22f71..c8c9282f 100644 --- a/src/xml-parsers.js +++ b/src/xml-parsers.js @@ -195,6 +195,8 @@ export function parseListObjects(xml) { if (listBucketResult.NextMarker) { nextMarker = listBucketResult.NextMarker + } else if (isTruncated && result.objects.length > 0) { + nextMarker = result.objects[result.objects.length - 1].name } parseCommonPrefixesEntity(listBucketResult.CommonPrefixes) }