fix window
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -143,7 +143,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { | ... | @@ -143,7 +143,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { |
| 143 | replace := strings.NewReplacer("\\", "/") | 143 | replace := strings.NewReplacer("\\", "/") |
| 144 | a := []byte(paths) | 144 | a := []byte(paths) |
| 145 | a = a[len([]byte(self.root)):] | 145 | a = a[len([]byte(self.root)):] |
| 146 | subdir := path.Dir(replace.Replace(strings.TrimLeft(string(a), "/"))) | 146 | subdir := path.Dir(strings.TrimLeft(replace.Replace(string(a)), "/")) |
| 147 | if _, ok := self.files[subdir]; ok { | 147 | if _, ok := self.files[subdir]; ok { |
| 148 | self.files[subdir] = append(self.files[subdir], paths) | 148 | self.files[subdir] = append(self.files[subdir], paths) |
| 149 | } else { | 149 | } else { | ... | ... |
-
Please register or sign in to post a comment