I need to get some files in definite folders. For this purpose I use this answer and it works fine. However, my folder structure is like:
Documents/
idOfFolder1/
images/
image1.jpg
image2.png
sounds/
sound1.mp3
files/
file1.pdf
idOfFolder2/
images/
...
I need to iterate through all folders having a specific id and get images. Since the answer written iterates through all folders it takes much more time than normal (we have many files). To optimize process, I want to skip "sounds" and "files" folders. Is there a way to handle this?
Thank you!