aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-06 19:46:43 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-06 19:46:43 -0700
commitdd7aadfa4e0b3f0274a5dd86fd5ebf73ad80b2d2 (patch)
treee80292b0e3bd7e7eb9f6189d497866cd8fcd30de
parentd4c152a4dba0eec7c8ecd13732900909f51b1c97 (diff)
Fix getFileNameList when broken symlink present
-rw-r--r--hotline/files.go3
1 files changed, 3 insertions, 0 deletions
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
}