<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I check the documentation here, but it does not say how to check if a | directory is exist in python? | http://docs.python.org/lib/os-file-dir.html
Look at the exist or isdir methods of the os.path module (http://docs.python.org/lib/module-os.path.html} | | And why mkdir fails if the directory already exists? If you prefer a "more friendly" approach you may wanna take a look at Trent Mick's _mkdir which is located at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82465 | Regards, Vincent Wehren | Thank you. | -- http://mail.python.org/mailman/listinfo/python-list