In node.js, can I list files with wild card matching like
fs.readdirSync(\'C:/tmp/*.csv\')?
I did not find the information on wild card ma
Just in case you want to search files by regex (for complex matches), then consider using file-regex, which supports recursive search and concurrency control (for faster results).
Sample usage
import FindFiles from 'file-regex'
// This will find all the files with extension .js
// in the given directory
const result = await FindFiles(__dirname, /\.js$/);
console.log(result)