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
getAllFiles - for an asynchronous version.
Retrieves all files in the given directory recursively (synchronously)