Skip to content

Commit d78c929

Browse files
authored
Actually skip file (#299)
1 parent 33aa6f9 commit d78c929

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sources/filesystem/filesystem.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) err
9999
fileStat, err := os.Stat(path)
100100
if err != nil {
101101
log.WithError(err).Warnf("unable to stat file: %s", path)
102+
return nil
102103
}
103104
if !fileStat.Mode().IsRegular() {
104105
return nil

0 commit comments

Comments
 (0)