From 72a658a30f52caf140a555a14c8704448849be97 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Fri, 5 Jul 2024 19:49:50 +0300 Subject: routes: ignore files --- routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3