Skip to content

Find, verify, and analyze leaked credentials

Actually skip file (#299)

Bill Richd78c92938528
diff --git a/pkg/sources/filesystem/filesystem.go b/pkg/sources/filesystem/filesystem.go
index d67cb830a..af5feabe0 100644
--- a/pkg/sources/filesystem/filesystem.go
+++ b/pkg/sources/filesystem/filesystem.go
@@ -99,6 +99,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
fileStat, err := os.Stat(path)
if err != nil {
log.WithError(err).Warnf("unable to stat file: %s", path)
+ return nil
}
if !fileStat.Mode().IsRegular() {
return nil