Directory path to start the search from
Suffix of the files to be retrieved
If true, a directory that cannot be read aborts the traversal; otherwise it is logged and skipped (the default)
Based on https://stackoverflow.com/a/45130990
getAllFilesSync for a synchronous version.
Retrieves all files in the given directory recursively