How do I create a dir using Python?

Klaus Alexander Seistrup klaus at seistrup.dk
Wed Nov 9 03:20:11 EST 2005


Sumi wrote:

> How do i create a dir using python.........

#v+

os.makedirs = makedirs(name, mode=511)
    makedirs(path [, mode=0777])
    
    Super-mkdir; create a leaf directory and all intermediate ones.
    Works like mkdir, except that any intermediate path segment (not
    just the rightmost) will be created if it does not exist.  This 
    is recursive

#v-

Cheers,

-- 
Klaus Alexander Seistrup
Copenhagen, Denmark
http://seistrup.dk/



More information about the Python-list mailing list