I tried to replicate the Richard Swinbank solution to get metadata files flatten.
It fill a Queue with three actions,
If Path, Get Metadata and push it to top of array
If Folder, Create Path, push it to the bottom
If File, Add Path + File name to _result array.
For anyone needing this, this is my solution :
https://gitlab.com/samuel.roy07/get-metadata-recursively-adf/-/blob/main/Get_Metadata_Recursive.json
New contributor
Samuel Roy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.