1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 15:10:54 +00:00

change replace windows seperator to filepath.Slash

This commit is contained in:
tianqi 2016-01-06 22:09:12 +08:00
parent 2b4a3d19d2
commit d9e7af689f

View File

@ -199,7 +199,7 @@ func (wft *walkFileTree) virPath(fpath string) string {
return ""
}
name = name[1:]
name = strings.Replace(name, "\\", "/", -1)
name = path.ToSlash(name)
return name
}