This repository has been archived on 2026-08-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2014-08-15 12:52:16 +02:00
|
|
|
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)
|
|
|
|
|
}
|