The easiest to retrieve all your files is probably to use the glob function. It will list the files you are looking for just as ls or dir would do at the OS prompt, depending on whether you are on Linux or Windows. For example with something like this: