[Tutor] Checking for file existence

Danny Yoo dyoo@hkn.eecs.berkeley.edu
Sat, 24 Feb 2001 13:30:43 -0800 (PST)

On Sat, 24 Feb 2001, Tim Johnson wrote:

> Hello:
> 	Python newbie here.... I'm checking documentation, but can't
> find anything like the C access() function.
> Is such a function available.

Hello!  Try the os.path.exists() function: it's documented here: