diff --git a/main.go b/main.go index 3819667..227c67c 100755 --- a/main.go +++ b/main.go @@ -76,16 +76,6 @@ func row(name string, href string, size float64, ext string) string { ` } -func extraFolder(loc string) string { - if !strings.HasSuffix(loc, "/") { - loc = loc + "/" - } - if !strings.HasPrefix(loc, "/") { - loc = "/" + loc - } - return `` + loc + `` -} - func replyList(w http.ResponseWriter, path string) { if !strings.HasSuffix(path, "/") { path += "/" @@ -104,7 +94,7 @@ func replyList(w http.ResponseWriter, path string) {