summary refs log tree commit diff stats
path: root/internal/storage/files/writer.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/storage/files/writer.go')
-rw-r--r--internal/storage/files/writer.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/storage/files/writer.go b/internal/storage/files/writer.go
index cd227c0..ce498e7 100644
--- a/internal/storage/files/writer.go
+++ b/internal/storage/files/writer.go
@@ -6,7 +6,6 @@ import (
 	"io"
 	"os"
 	"path/filepath"
-	"strings"
 
 	"go.alanpearce.eu/x/log"
 
@@ -177,8 +176,5 @@ func (f *Files) Mkdirp(dir string) error {
 }
 
 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))
 }