Create directories in Python
August 02, 2009 02:43:13 Last update: August 30, 2010 16:08:48
- os.mkdir - Create a directory. Returns None.
os.mkdir(path [, mode=0777])
- os.makedirs - reate a leaf directory and all intermediate ones. Returns None.
os.makedirs(path [, mode=0777])
This works like mkdir, except that any intermediate path segment will be created if it does not exist.