[Tutor] Creating folders

Glenn T Norton gtnorton at earthlink.net
Thu Jan 11 01:11:56 CET 2007

Toon Pieton wrote:

> Hey friendly users!
> My question is pretty simple. How can I create a folder with Python? 
> Trying to make a program which will allow me to save my notes (txt 
> files) quickly and cleanly. Having to create folder manually would 
> really make it a bit obsolete.
> Thanks in advance!
>Tutor maillist  -  Tutor at python.org
import os
os.mkdir(name_of_directory, permissions)

 >>> print os.mkdir.__doc__


"Ketchup. For the good times... " - Ketchup Advisory Board 
Glenn Norton
Application Developer
glenn at nebraska.gov

More information about the Tutor mailing list