FileExists() in Python?

Tim Howarth tim at worthy.demon.co.uk
Sun May 13 14:05:59 EDT 2001


In message <3afeb5b7.1138522 at news.newsguy.com>
          ransen_spam_me_not at nemo.it (Owen F. Ransen) wrote:

> What is the best style for writing a platform
> independent FileExists function? Using exceptions?

What's wrong with os.path.exists ?

and/or
os.path.isfile
os.path.isdir

-- 
___
 |im    ---- ARM Powered ----



More information about the Python-list mailing list