From 9e15635c2d891574de72e20ae16a22149f384d81 Mon Sep 17 00:00:00 2001 From: Patrick Devine Date: Tue, 18 Jul 2023 15:37:01 -0700 Subject: [PATCH] attempt two for skipping files in the file walk (#105) --- server/routes.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index 3256af16..48060d4e 100644 --- a/server/routes.go +++ b/server/routes.go @@ -195,7 +195,8 @@ func list(c *gin.Context) { if !info.IsDir() { fi, err := os.Stat(path) if err != nil { - return err + log.Printf("skipping file: %s", fp) + return nil } path := path[len(fp)+1:] slashIndex := strings.LastIndex(path, "/")