detecting and creating directories

Skip Montanaro skip at pobox.com
Mon Oct 29 14:11:08 EST 2001


    Angel> I have not been lucky finding a way to check for the existance of
    Angel> a directory (so it is not there, I can create it).

    Angel> Any pointers?

Check out the os.path module, especially os.path.isdir.

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list