[TASK] Refactor both versions of readDirectoryRecursively

Both versions in Files should work and provide the extensible feature.
This simplifies the parameters required by the anonymous filter function to just require the
SplFileInfo object. Later, if it's more performant, feel free to pass in the pathname
and filename as well.