Skip to content

Commit

Permalink
check that file is regular
Browse files Browse the repository at this point in the history
  • Loading branch information
itayd committed May 23, 2022
1 parent 3fe08bc commit d889803
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ func gather(prev, path string, matcher func(string) bool) error {
return nil
}

if !fi.Mode().IsRegular() {
return nil
}

if exts := collectFlags.exts.Value(); len(exts) > 0 {
ext := filepath.Ext(path)
if len(ext) > 0 && ext[0] == '.' {
Expand Down

0 comments on commit d889803

Please sign in to comment.