Finds all files in a directory that end with the given extension text.
The directory to search in.
The extension for matching files, such as ".txt" or ".d"
Whether to recursively search subdirectories.
How deep to search recursively. -1 indicates infinite recursion.
The list of matching files.
See Implementation
Finds all files in a directory that end with the given extension text.