From dd7aadfa4e0b3f0274a5dd86fd5ebf73ad80b2d2 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 6 Jun 2022 19:46:43 -0700 Subject: Fix getFileNameList when broken symlink present --- hotline/files.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hotline/files.go b/hotline/files.go index 04334e9..e77f631 100644 --- a/hotline/files.go +++ b/hotline/files.go @@ -56,6 +56,9 @@ func getFileNameList(filePath string) (fields []Field, err error) { } rFile, err := os.Stat(filePath + "/" + resolvedPath) + if errors.Is(err, os.ErrNotExist) { + continue + } if err != nil { return fields, err } -- cgit