all repos — website @ 127a675fc7cd9cdb65e4b4caac21e0f259102ee8

My website

serve files from Storage implementation

Alan Pearce
commit

127a675fc7cd9cdb65e4b4caac21e0f259102ee8

parent

04809ffd7971032818238db14feb6d3c95470e3b

1 file changed, 1 insertion(+), 5 deletions(-)

changed files
M internal/storage/files/writer.gointernal/storage/files/writer.go
@@ -6,7 +6,6 @@ "context"
"io" "os" "path/filepath" - "strings" "go.alanpearce.eu/x/log"
@@ -177,8 +176,5 @@ return errors.WithMessage(err, "could not create directory")
} func (f *Files) join(filename string) string { - if strings.HasSuffix(filename, "/") { - filename = filename + "index.html" - } - return filepath.Join(f.outputDirectory, filename) + return filepath.Join(f.outputDirectory, pathNameToFileName(filename)) }