* Gets parts count if object was put with mpu * @param {object} objMD - object metadata * @return {(Integer|null)} - number of parts of mpu object or null
(objMD)
| 60 | * @return {(Integer|null)} - number of parts of mpu object or null |
| 61 | */ |
| 62 | function getPartCountFromMd5(objMD) { |
| 63 | const md5 = objMD['content-md5']; |
| 64 | if (md5.includes('-')) { |
| 65 | return md5.split('-')[1]; |
| 66 | } |
| 67 | return null; |
| 68 | } |
| 69 | |
| 70 | module.exports = { |
| 71 | getPartNumber, |
no outgoing calls
no test coverage detected