diff options
Diffstat (limited to 'internal/scanner/scanner.go')
| -rw-r--r-- | internal/scanner/scanner.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/scanner/scanner.go b/internal/scanner/scanner.go index c2c2fea..ca601ba 100644 --- a/internal/scanner/scanner.go +++ b/internal/scanner/scanner.go @@ -16,5 +16,16 @@ func New(roots []string) *Scanner { // // The returned slice is not guaranteed to be sorted. func (s *Scanner) Scan(ctx context.Context) ([]File, error) { + var files []File + + for _, root := range s.roots { + discovered, err := s.walk(ctx, root) + if err != nil { + return nil, err + } + + files = append(files, discovered...) + } + return nil, nil } |