Recursively search for files in the given directory and filters them based on given filterer function. If a file path is passed, it returns an array containing only that path.
getFiles("./tests/"); // ["./tests/vangware.test.ts"]
Array of files in given directory that match filterer.
directory
filterer
Directory to get files from.
Recursively search for files in the given directory and filters them based on given filterer function. If a file path is passed, it returns an array containing only that path.
Example
Returns
Array of files in given
directory
that matchfilterer
.