MCPcopy Create free account
hub / github.com/AbelChe/evil_minio / pathJoin

Function pathJoin

cmd/object-api-utils.go:231–239  ·  view source on GitHub ↗

pathJoin - like path.Join() but retains trailing SlashSeparator of the last element

(elem ...string)

Source from the content-addressed store, hash-verified

229
230// pathJoin - like path.Join() but retains trailing SlashSeparator of the last element
231func pathJoin(elem ...string) string {
232 trailingSlash := ""
233 if len(elem) > 0 {
234 if HasSuffix(elem[len(elem)-1], SlashSeparator) {
235 trailingSlash = SlashSeparator
236 }
237 }
238 return path.Join(elem...) + trailingSlash
239}
240
241// mustGetUUID - get a random UUID.
242func mustGetUUID() string {

Callers 15

readDirFnFunction · 0.85
readDirWithOptsFunction · 0.85
GetRawDataMethod · 0.85
CopyObjectMethod · 0.85
DeleteBucketMethod · 0.85
HealBucketMethod · 0.85
untarFunction · 0.85
getConditionValuesFunction · 0.85
TestOSMkdirAllFunction · 0.85
TestOSRenameAllFunction · 0.85
TestIsValidUmaskFileFunction · 0.85
LaunchNewHealSequenceMethod · 0.85

Calls 1

HasSuffixFunction · 0.85

Tested by 15

TestOSMkdirAllFunction · 0.68
TestOSRenameAllFunction · 0.68
TestIsValidUmaskFileFunction · 0.68
testAPIGetObjectHandlerFunction · 0.68
TestFormatErasureMigrateFunction · 0.68
TestErasureHealFunction · 0.68
TestHealingFunction · 0.68
TestHealingVersionedFunction · 0.68
TestHealCorrectQuorumFunction · 0.68