How can I add different validation of a document extension, if I´m using GetFiles?

It´s the name of the folder where my documents take place before download it :smiley: I check it individually and what makes the error are the: *pdf…