mirror of
https://github.com/beego/bee.git
synced 2025-06-20 08:20:39 +00:00
change replace windows seperator to filepath.Slash
This commit is contained in:
2
pack.go
2
pack.go
@ -199,7 +199,7 @@ func (wft *walkFileTree) virPath(fpath string) string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
name = name[1:]
|
name = name[1:]
|
||||||
name = strings.Replace(name, "\\", "/", -1)
|
name = path.ToSlash(name)
|
||||||
return name
|
return name
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user