mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
fix: on windows avoid ':' as part of the object name (#19907)
fixes #18865 avoid-colon
This commit is contained in:
@@ -80,6 +80,18 @@ const (
|
||||
compMinIndexSize = 8 << 20
|
||||
)
|
||||
|
||||
// getkeyeparator - returns the separator to be used for
|
||||
// persisting on drive.
|
||||
//
|
||||
// - ":" is used on non-windows platforms
|
||||
// - "_" is used on windows platforms
|
||||
func getKeySeparator() string {
|
||||
if runtime.GOOS == globalWindowsOSName {
|
||||
return "_"
|
||||
}
|
||||
return ":"
|
||||
}
|
||||
|
||||
// isMinioBucket returns true if given bucket is a MinIO internal
|
||||
// bucket and false otherwise.
|
||||
func isMinioMetaBucketName(bucket string) bool {
|
||||
|
||||
Reference in New Issue
Block a user