check if dir exists

Bob Gailer bgailer at alum.rpi.edu
Wed Jul 9 15:16:48 EDT 2003


At 09:01 PM 7/9/2003 +0200, Geiregat Jonas wrote:

>How can I check if a dir exists ?

os.path.exists(path) # Return true if path refers to an existing path.

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030709/87bc8b04/attachment.html>
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003


More information about the Python-list mailing list