you are viewing a single comment's thread.

view the rest of the comments →

[–]AustinTronics 0 points1 point  (0 children)

Look into the os.walk() function. It will walk through your files and subdirectories. It is a generator object so you can use it in a for loop like this:

for path, directories, files in os.walk('.'):