Skip to content

Commit

Permalink
fix: donot die on non symb lnk
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincobain2000 committed Jan 9, 2025
1 parent 184c68a commit aece996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aece996

Please sign in to comment.