Normalize file name format in on disk db (fixes #479)

This commit is contained in:
Jakob Borg
2014-08-15 12:52:16 +02:00
parent 50f0097843
commit ace87ad7bb
4 changed files with 82 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
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)
}