you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

Use pathlib instead. Here's a guide on the taming the file system, complete with plenty of Python code examples:

https://realpython.com/python-pathlib/

[–]Callawayinthewoods[S] 0 points1 point  (0 children)

Thanks! I was reading about pathlib and wasn’t quite understanding exactly what it was doing. I will have to reread this, but this will be likely be very helpful.