diff --git a/toc.go b/toc.go index e3c9f91..2169099 100644 --- a/toc.go +++ b/toc.go @@ -7,7 +7,6 @@ package bindata import ( "fmt" "io" - "os" "sort" "strings" ) @@ -130,7 +129,7 @@ func AssetDir(name string) ([]string, error) { } tree := newAssetTree() for i := range toc { - pathList := strings.Split(toc[i].Name, string(os.PathSeparator)) + pathList := strings.Split(toc[i].Name, "/") tree.Add(pathList, toc[i]) } return tree.WriteAsGoMap(w)