mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
14 lines
416 B
Go
14 lines
416 B
Go
|
//go:build windows
|
||
|
// +build windows
|
||
|
|
||
|
package restorer
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
// toComparableFilename returns a filename suitable for equality checks. On Windows, it returns the
|
||
|
// uppercase version of the string. On all other systems, it returns the unmodified filename.
|
||
|
func toComparableFilename(path string) string {
|
||
|
// apparently NTFS internally uppercases filenames for comparision
|
||
|
return strings.ToUpper(path)
|
||
|
}
|