file path supports windows, avoiding back slashes

fix https://github.com/chrislusf/seaweedfs/issues/868
This commit is contained in:
Chris Lu
2019-03-04 13:00:08 -08:00
parent f9dcf56465
commit d312c55bbe
5 changed files with 10 additions and 10 deletions

View File

@@ -16,7 +16,7 @@ func ToBreadcrumb(fullpath string) (crumbs []Breadcrumb) {
for i := 0; i < len(parts); i++ {
crumbs = append(crumbs, Breadcrumb{
Name: parts[i] + "/",
Link: "/" + filepath.Join(parts[0:i+1]...),
Link: "/" + filepath.ToSlash(filepath.Join(parts[0:i+1]...)),
})
}