create multiple folders in python automatically

gowtham picture gowtham · Jul 1, 2010 · Viewed 7.5k times · Source

I want to create a path like C:\sample\sample1\hello.py. It should automatically create the complete path from sample to hello.py, and all the directories in between. Is this possible in Python?

Answer

Sjoerd picture Sjoerd · Jul 1, 2010

The following functions may help: