Thank you for the reply. How to pass location of the files in the above code?
For example: I have all the files in /data/test/ location.
Also, I have almost 30 unique file formats/types to search. In your example you have specified only 2, is there a limit of how many file formats I can pass?