aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/routes.go b/routes/routes.go
index 8813baa..327e7b4 100644
--- a/routes/routes.go
+++ b/routes/routes.go
@@ -40,7 +40,7 @@ func (d *deps) Index(w http.ResponseWriter, r *http.Request) {
infos := []info{}
for _, dir := range dirs {
- if d.isIgnored(dir.Name()) {
+ if !dir.IsDir() || d.isIgnored(dir.Name()) {
continue
}