I have a specific order of .wav files that I want to call and they are nested in many subfolders. An example of the directory the directory will be below.
Stimuli (root)->CC->Processed sentences->EAS-> "#.wav"
SO->Processed sentences ->EAS-> "#.wav"
SS->Processed sentences ->EAS-> "#.wav"
Currently I have a function to generate the exact order of .wav files; it is a matrix with the file number, values for CC vs SO, and values for EAS vs Vocod. However, I am having a hard time trying to find an effecient way to navigate the subfolders and directory to call on the specific .wav file. My current idea is to create a very long for loop/decision tree that will utilize the cd function to go into the subfolder I need and back to the root.
Let me know if theres a better way to handle the directories and subfolders. Thanks!