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
1 changed files with 1 additions and 1 deletions

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
}