forked from mirror/pkger
what i wouldn't do
This commit is contained in:
parent
c0910bf8ca
commit
b7e0b2c1bb
|
@ -7,6 +7,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/markbates/pkger/here"
|
"github.com/markbates/pkger/here"
|
||||||
"github.com/markbates/pkger/pkging/stdos"
|
"github.com/markbates/pkger/pkging/stdos"
|
||||||
|
@ -97,7 +98,7 @@ func fromPath(pt here.Path) ([]here.Path, error) {
|
||||||
|
|
||||||
root := here.Path{
|
root := here.Path{
|
||||||
Pkg: pt.Pkg,
|
Pkg: pt.Pkg,
|
||||||
Name: filepath.Dir(pt.Name),
|
Name: strings.Replace(filepath.Dir(pt.Name), "\\", "/", -1),
|
||||||
}
|
}
|
||||||
paths = append(paths, root)
|
paths = append(paths, root)
|
||||||
err = pkg.Walk(pt.Name, func(path string, info os.FileInfo, err error) error {
|
err = pkg.Walk(pt.Name, func(path string, info os.FileInfo, err error) error {
|
||||||
|
|
Loading…
Reference in New Issue