react-scanner icon indicating copy to clipboard operation
react-scanner copied to clipboard

Process exits when it cannot find any files to parse

Open gyfchong opened this issue 2 years ago • 0 comments

Currently I'm trying to use this to scan multiple directories using await scanner.run() within a loop.

The issue is that some of these directories may or may not have the files I'm looking to match, so when the scanner decides to exit at the first sight of no files, this causes a problem in the rest of the process.

I expect it to let me know no files are found and perhaps leave it to me to decide what to do when it can't find any files.

gyfchong avatar Jun 16 '23 04:06 gyfchong