recursiveFindSync MethodStatic

Finds files recursively based on a pattern

recursiveFindSync(rootDir: string, pattern: RegExp): string[]

@returns list of file that match the pattern.

Parameter Type Description
rootDir string Directory from where to start searching for files.
pattern RegExp A Regex that would be match to basename of files including extension

Returns - string[]

list of file that match the pattern.

Defined in

Last Updated: 23 November, 2024