listIncompleteUploadsQuery method
Called by listIncompleteUploads to fetch a batch of incomplete uploads.
Implementation
Future<ListMultipartUploadsOutput> listIncompleteUploadsQuery(
String bucket,
String prefix,
String? keyMarker,
String? uploadIdMarker,
String delimiter,
) async {
MinioInvalidBucketNameError.check(bucket);
MinioInvalidPrefixError.check(prefix);
final queries = <String, dynamic>{
'uploads': null,
'prefix': prefix,
'delimiter': delimiter,
};
if (keyMarker != null) {
queries['key-marker'] = keyMarker;
}
if (uploadIdMarker != null) {
queries['upload-id-marker'] = uploadIdMarker;
}
final resp = await _client.request(
method: 'GET',
bucket: bucket,
resource: 'uploads',
queries: queries,
);
validate(resp);
final node = xml.XmlDocument.parse(resp.body);
return ListMultipartUploadsOutput.fromXml(node.root as XmlElement);
}