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

Function _getZenkoObjectKey

tests/multipleBackend/multipartUpload.js:230–236  ·  view source on GitHub ↗
(objectKey)

Source from the content-addressed store, hash-verified

228}
229
230function _getZenkoObjectKey(objectKey) {
231 if (objectKey.startsWith(bucketName)) {
232 // if it's a bucketNotMatch objectKey, remove the bucketName + '/'
233 return objectKey.substring(bucketName.length + 1);
234 }
235 return objectKey;
236}
237
238function assertObjOnBackend(expectedBackend, objectKey, cb) {
239 const zenkoObjectKey = _getZenkoObjectKey(objectKey);

Callers 1

assertObjOnBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected