Function: findFilesRecursivelyRegex()
findFilesRecursivelyRegex(
path
:PathLike
,regex
:RegExp
):AsyncIterableIterator
<string
>
Parameters
Parameter | Type | Description |
---|---|---|
path | PathLike | The path in which to find files. This can be a string, buffer, or URL. |
regex | RegExp | The regex pattern that the file name must match. |
Returns
AsyncIterableIterator
<string
>
An AsyncIterableIterator of all the files. To loop over these use for await (const file of findFilesRecursivelyRegex(path, fileNameEndsWith)) {}