]> git.r.bdr.sh - rbdr/mobius/commitdiff
Fix getFileNameList when broken symlink present
authorJeff Halter <redacted>
Tue, 7 Jun 2022 02:46:43 +0000 (19:46 -0700)
committerJeff Halter <redacted>
Tue, 7 Jun 2022 02:46:43 +0000 (19:46 -0700)
hotline/files.go

index 04334e951410cb06d62a9ee4c92349afa94dfbd1..e77f63129f1a5e574b4260aff4c8649e066bafc3 100644 (file)
@@ -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
                        }