change the output file to whatever you want it to be...
change the folder_path to the absolute path of the folder you are trying to loop through..
you can set the script to loop a specific file type
this script will loop through a folder and subfolders, then copy all the files in them. then paste them in a single output file
after setting the folder_path and your chosen output file, RUN the code