how do i check if a file exists with python?
DanielK at aracnet.com
Thu Dec 28 23:25:31 EST 2000
How about something like
file = open(f)
exists = 0
exists = 1
Although this is not as elegant as the person who submitted the 'glob'
"Scott Hathaway" <slhath at home.com> wrote in message
news:RlM26.98766$yR4.2639444 at news1.rdc1.tx.home.com...
> I have searched Deja, looked in two pyton books, and searched the
> site trying to find out this simple question.
> Can someone please give me the call and the module it lives in?
More information about the Python-list