check file exists

bragib at my-deja.com bragib at my-deja.com
Mon Jul 31 16:39:01 EDT 2000


os.path.exists('file.ext')
returns 1 or 0

Bragi



In article <3985DDA3.E811F70A at ncsa.uiuc.edu>,
  Randy Heiland <heiland at ncsa.uiuc.edu> wrote:
> How does one test for whether or not a (Unix) file exists?
>
> thanks,
> Randy
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list