In the documentation of the FileNames function I find that to search for a type of file at an arbitrary depth you can use:
FileNames[forms,dirs,Infinity]
However, it is not said how to input "dirs". I have tried different ways of doing it, without success.
Can somebody help me? PS. Instead of Infinity I can plug in any depth, right? Say {1} or {10}