How do I get the list of all the files in a directory? It should give me only files, and it should search through all the subdirectories, and the directories inside them etc. Basically the entire folder structure.
I have thousands of files and directories. I wrote a recursive function, but it is super slow. Is there any command or trick that can do this quickly? It has to run in windows and mac though.