A little disappointed so far

W Isaac Carroll icarroll at pobox.com
Sun May 18 21:05:37 EDT 2003


Graham Nicholls wrote:
> Is there an equivalent of [ -f $filename ] to test for the existence of
> filename in Python?  Things like this seem essential for a shell tool
> language. 

Try os.path.exists()

TTFN






More information about the Python-list mailing list