Testing for file existence

Aahz Maruch aahz at panix.com
Tue Oct 3 19:09:37 EDT 2000


In article <G1vHJE.E5u at bath.ac.uk>, P Browning <glpb at eis.bris.ac.uk> wrote:
>
>What's the recommended way to do this in Python?
>In Perl you've got -x File tests.

os.path.exists() and similar functions.
-- 
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

There's a difference between a person who gets shit zie doesn't
deserve and a person who gets more shit than zie deserves.  --Aahz



More information about the Python-list mailing list