diff --git a/fileserver.go b/fileserver.go
index 913412e..91b9ead 100644
--- a/fileserver.go
+++ b/fileserver.go
@@ -57,6 +57,10 @@ tr:not(:first-child):hover > td {
{{.Modified}} |
{{.Created}} |
+ {{else}}
+
+ Empty |
+
{{end}}
`))
@@ -103,7 +107,7 @@ func (fs *fileServer) handleDir(w http.ResponseWriter, dir http.File, uri string
return files[i].IsDir() && !files[j].IsDir()
})
entries := make([]fsEntry, 0, len(files)+1)
- if uri != "." {
+ if uri != "." && uri != "/" {
entries = append(entries, fsEntry{
Name: "..",
FullName: path.Join(fs.prefix, path.Dir(uri)),