Мне нужно создать цикл по всем файлам в подкаталогах. Можете ли вы помочь мне структурировать мой код следующим образом:
$main = "MainDirectory";
loop through sub-directories {
loop through filels in each sub-directory {
do something with each file
}
};