- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for hasSuffixByte (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
cmd/object-api-utils.go
return s + SlashSeparator } return s } if trailingSlash { dst.WriteByte(SlashSeparatorChar) } return dst.String() } // hasSuffixByte returns true if the last byte of s is 'suffix' func hasSuffixByte(s string, suffix byte) bool { return len(s) > 0 && s[len(s)-1] == suffix } // pathNeedsClean returns whether path.Clean may change the path.Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed Jun 25 15:08:54 GMT 2025 - 37.3K bytes - Click Count (0) -
cmd/object-api-utils_test.go
"github.com/minio/minio/internal/crypto" "github.com/minio/pkg/v3/trie" ) func pathJoinOld(elem ...string) string { trailingSlash := "" if len(elem) > 0 { if hasSuffixByte(elem[len(elem)-1], SlashSeparatorChar) { trailingSlash = SlashSeparator } } return path.Join(elem...) + trailingSlash } func concatNaive(ss ...string) string { rs := ss[0]
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 24.1K bytes - Click Count (0)