MCPcopy Index your code
hub / github.com/scality/cloudserver / parseXml

Function parseXml

lib/api/completeMultipartUpload.js:118–127  ·  view source on GitHub ↗
(xmlToParse, next)

Source from the content-addressed store, hash-verified

116 }
117
118 function parseXml(xmlToParse, next) {
119 return parseString(xmlToParse, (err, result) => {
120 if (err || !result || !result.CompleteMultipartUpload
121 || !result.CompleteMultipartUpload.Part) {
122 return next(errors.MalformedXML);
123 }
124 const jsonList = result.CompleteMultipartUpload;
125 return next(null, jsonList);
126 });
127 }
128
129 return async.waterfall([
130 function validateDestBucket(next) {

Callers 1

completeMultipartUploadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected