How to check if a directory is exist in python?

yinglcs at gmail.com yinglcs at gmail.com
Sun Mar 19 22:24:25 CET 2006


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

And why mkdir fails if the directory already exists?

Thank you.




More information about the Python-list mailing list