how do i check if a file exists with python?
Steve Lamb
grey at despair.rpglink.com
Thu Dec 28 14:25:58 EST 2000
On Thu, 28 Dec 2000 19:18:09 GMT, Scott Hathaway <slhath at home.com> wrote:
>I have searched Deja, looked in two pyton books, and searched the python.org
>site trying to find out this simple question.
>Can someone please give me the call and the module it lives in?
Well, 2 minutes and one Beazley book later.
os.path.exists()
os.path.isfile()
--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
ICQ: 5107343 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
More information about the Python-list
mailing list