• you shoud use two for each loop to get each type of file from the same folder.

    it makes the system fast, since you do not have to define the logic to get the files from the folder in single for each loop.