Good morning everyone, I would like some help from the staff, I need to deliver a project in PHP and find myself stuck in a certain part of it, I need to recursively list all the directories that are inside "D: \" .
Example:
D:\diretorio01\backup001\
D:\diretorio02\backup002\
\backup003\
D:\diretorio03\backup004\
And after listing the directories, I need to find all the .bak files inside them.
Is it possible to create this structure?
Thank you in advance for the support of all involved.