dont yield dirs
This commit is contained in:
@@ -79,7 +79,13 @@ func (config config) targets() ([]string, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
result = append(result, results...)
|
||||
for i := range results {
|
||||
if stat, err := os.Stat(results[i]); err != nil {
|
||||
return nil, err
|
||||
} else if !stat.IsDir() {
|
||||
result = append(result, results[i])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(result) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user