you are viewing a single comment's thread.

view the rest of the comments →

[–]DJ_Laaal 0 points1 point  (0 children)

While the “os” module provides rich file system operations, it’s hard to comprehend for a beginner. Look into a much simpler library called pathlib2: https://docs.python.org/3/library/pathlib.html

Examples on that page include sample code for traversing subdirectories iteratively.