Function: findFilesRecursivelyStringEndsWith()
findFilesRecursivelyStringEndsWith(
path
:PathLike
,fileEndsWith
:string
):AsyncIterableIterator
<string
>
Parameters
Parameter | Type | Description |
---|---|---|
path | PathLike | The path in which to find files. This can be a string, buffer, or URL. |
fileEndsWith | string | The string pattern with which the file name must end. Ideally this is a file extension, however you can also provide more parts of the end of the file. Note that we do not support a full globby pattern using asterisk for wildcards. It has to be an exact match with String.endsWith |
Returns
AsyncIterableIterator
<string
>
An AsyncIterableIterator of all the files. To loop over these use for await (const file of findFilesRecursivelyStringEndsWith(path, fileNameEndsWith)) {}