Please refer the below blog for step by step detail to achieve the goal :
you need a combination of for each activity and get meta data activity to get list of all files within all folders recursively.
Note : rather than getting the file size and adding it up, you can use append variable activity and append the file names to an array variable .
Then take a union of the variable with itself at the end after all iterations to remove the duplicate values and get the unique file names