FileExists() in Python?

Roeland Rengelink r.b.rigilink at chello.nl
Mon May 14 09:46:23 EDT 2001


"Owen F. Ransen" wrote:
> 
> What is the best style for writing a platform
> independent FileExists function? Using exceptions?
> 

Have a look at the os.path module in the standard library.
os.path.exists(path) 
is what you're looking for

Roeland
-- 
r.b.rigilink at chello.nl

"Half of what I say is nonsense. Unfortunately I don't know which half"



More information about the Python-list mailing list