Retrieves all files in the given directory recursively (synchronously)
getAllFiles - for an asynchronous version.
Retrieves all files in the given directory recursively (synchronously)