Merge pull request #80 from srhnsn/master

Always split by forward slashes when writing the TOC tree.
pull/4/head
Jim Teeuwen 2015-03-21 19:11:58 +01:00
commit 21f0a65fc5
1 changed files with 1 additions and 2 deletions

3
toc.go
View File

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