Directory path to start the search from
Suffix of the files to be retrieved, tested against the file name
Directories to skip, tested against the posix path relative to dir
(e.g. packrat/lib), so a pattern can address nested directories
The path to which the returned paths are relative (used for ignoreDirs), defaults to dir
If true, a directory that cannot be read aborts the traversal; otherwise it is logged and skipped (the default)
getAllFiles - for an asynchronous version.
Retrieves all files in the given directory recursively (synchronously)