Fix path bug
alex wennerberg alex@alexwennerberg.com
Sun, 27 Dec 2020 15:38:00 -0800
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
http.go
→
http.go
@@ -557,11 +557,8 @@ files, _ := ioutil.ReadDir(fileName)
renderedFiles := []File{} for _, file := range files { n := file.Name() - if file.IsDir() { - n += "/" - } newFile := File{ - Name: n, + Name: path.Join(p, n), // SHOULD be safe UpdatedTime: file.ModTime(), Host: c.Host, Creator: getCreator(fileName),