SyntaxFix
Write A Post
Hire A Developer
Questions
Have you tried os.mkdir?
You might also try this little code snippet:
mypath = ... if not os.path.isdir(mypath): os.makedirs(mypath)
makedirs creates multiple levels of directories, if needed.