fixed some path issues

This commit is contained in:
ston1th 2019-05-02 14:50:28 +02:00
commit 38c2a72fe0
5 changed files with 22 additions and 28 deletions

View file

@ -7,3 +7,8 @@ const sep = "/"
func Clean(path string) string {
return filepath.FromSlash(filepath.Clean(sep + path))
}
func File(path string) string {
_, f := filepath.Split(Clean(path))
return f
}