mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:10:54 +00:00
fix window
This commit is contained in:
parent
3c4dd99fbe
commit
e6ab2f73b6
@ -143,7 +143,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
|
|||||||
replace := strings.NewReplacer("\\", "/")
|
replace := strings.NewReplacer("\\", "/")
|
||||||
a := []byte(paths)
|
a := []byte(paths)
|
||||||
a = a[len([]byte(self.root)):]
|
a = a[len([]byte(self.root)):]
|
||||||
subdir := path.Dir(replace.Replace(strings.TrimLeft(string(a), "/")))
|
subdir := path.Dir(strings.TrimLeft(replace.Replace(string(a)), "/"))
|
||||||
if _, ok := self.files[subdir]; ok {
|
if _, ok := self.files[subdir]; ok {
|
||||||
self.files[subdir] = append(self.files[subdir], paths)
|
self.files[subdir] = append(self.files[subdir], paths)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user