fixed some path issues
This commit is contained in:
parent
ffeeae5702
commit
38c2a72fe0
5 changed files with 22 additions and 28 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue