I actually have a script that iterates a file tree and outputs all the folders and files inside it, it do the work correctly: