I am writing a function that will take in a text file and do some manipulation on it. The files are stored in somewhat different places, such as: /Documents/news/sports/something.txt where sports will be a folder with 20+ txt files
There are 20 more categories, stored such as: /Documents/news/next_category/something_else.txt
So the problem is that I want to pass in every txt file inside each folder inside the news folder, into my program, one by one. Is there a way to do this?
Thanks