Merge pull request #80 from srhnsn/master
Always split by forward slashes when writing the TOC tree.
This commit is contained in:
commit
21f0a65fc5
3
toc.go
3
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user