From 9178943e13068de870efe3669e6b939e38f64274 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Serhan=20=C5=9Een?= Date: Sat, 21 Mar 2015 16:36:03 +0100 Subject: [PATCH] Always split by forward slashes when writing the TOC tree. At that point, all slashes are normalized as forward slashes. --- toc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)