e6ab2f73 by astaxie

fix window

1 parent 3c4dd99f
...@@ -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 {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!