From aece9964b8ff7dc038b67f73756ccbdf88f3da8f Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Thu, 9 Jan 2025 15:00:38 +0900 Subject: [PATCH] fix: donot die on non symb lnk --- pkg/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/files.go b/pkg/files.go index 7705fa4..ee4a664 100644 --- a/pkg/files.go +++ b/pkg/files.go @@ -66,7 +66,7 @@ func FilesByPattern(pattern string, onlyRecent bool) ([]string, error) { for _, file := range files { info, err := os.Stat(file) if err != nil { - return nil, err + continue } if IsRecentlyModified(info, 86400) { recentFiles = append(recentFiles, file)