Skip to content

Commit

Permalink
Fix filesystem enumeration ignore paths bug (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcastorina authored Jan 30, 2024
1 parent 7ece4c3 commit 6824eb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sources/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ func (s *Source) Enumerate(ctx context.Context, reporter sources.UnitReporter) e
return nil
}
fullPath := filepath.Join(path, relativePath)
if s.filter != nil && !s.filter.Pass(fullPath) {
return nil
}
item := sources.CommonSourceUnit{ID: fullPath}
return reporter.UnitOk(ctx, item)
})
Expand Down

0 comments on commit 6824eb4

Please sign in to comment.