Always split by forward slashes when writing the TOC tree.

At that point, all slashes are normalized as forward slashes.
This commit is contained in:
Serhan Şen 2015-03-21 16:36:03 +01:00
parent 7362d4b6b2
commit 9178943e13

3
toc.go
View File

@ -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)