Normalize file name format in on disk db (fixes #479)
This commit is contained in:
15
files/filenames_windows.go
Normal file
15
files/filenames_windows.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user