Should you be using Pathlib?
I've been working in Python for four years - recently I made the conscious choice to use pathlib rather than the more familiar os & os.path.
It's been a great experience - I wrote a short piece (friend link) comparing the two libraries on common workflows & tasks done with file paths.
22 comments · 86% upvoted · other discussions
Just a FYI there exists
os.makedirsthat acceptsexist_okas argument (and that includes theparents=Truefunctionality automatically). Great article nonetheless.ADGEfficiency [OP] 1 points · Feb 2021
Thanks for this - are there are any other differences with `os.makedirs`?