How to traverse all folders and files within a folder dynamically in Python 3
I had this requirement where I need to be able to look into a folder and pick up any configuration files for my Python 3 application. In order to achieve that, I first set an exploratory task to get the Python 3 code for traversing all folders and files within a folder.
For this exploratory task, I had created a script that will traverse the folders and files that are contained within a folder and print out their full paths.
Follow us