mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 14:50:56 +00:00
16 lines
249 B
Go
16 lines
249 B
Go
package files
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"code.google.com/p/go.text/unicode/norm"
|
|
)
|
|
|
|
func normalizedFilename(s string) string {
|
|
return norm.NFC.String(filepath.ToSlash(s))
|
|
}
|
|
|
|
func nativeFilename(s string) string {
|
|
return filepath.FromSlash(s)
|
|
}
|