Fix filesystem enumeration ignore paths bug (#2355)

This commit is contained in:
Miccah
2024-01-30 12:21:37 -08:00
committed by GitHub
parent 7ece4c3e66
commit 6824eb41ea
+3
View File
@@ -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)
})