mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
13 lines
425 B
Go
13 lines
425 B
Go
![]() |
package store
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
// normalizeVolumeName is a platform specific function to normalize the name
|
||
|
// of a volume. On Windows, as NTFS is case insensitive, under
|
||
|
// c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
|
||
|
// Hence we can't allow the volume "John" and "john" to be created as separate
|
||
|
// volumes.
|
||
|
func normalizeVolumeName(name string) string {
|
||
|
return strings.ToLower(name)
|
||
|
}
|