all repos — homestead @ 980d1c718767b09292c6731eff111ba1edc3c53c

Code for my website

internal/storage/sqlite/file.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
package sqlite

import (
	"strings"
)

func pathNameToFileName(pathname string) string {
	if strings.HasSuffix(pathname, "/") {
		pathname += "index.html"
	}

	return pathname
}