Sync/Sync/NormalisePath.go
Thorsten Sommer 815b15840c Version 1.0.0
2015-09-30 10:51:22 +02:00

13 lines
216 B
Go

package Sync
import (
"path/filepath"
"strings"
)
func normalisePath(base, path string) string {
result := strings.Replace(path, base, ``, 1)
result = filepath.ToSlash(result)
return strings.ToLower(result)
}