Detect existing files?

Fredrik Lundh fredrik at pythonware.com
Wed May 2 18:53:08 CEST 2001


Stephan Schulz wrote:
> Now my question: Is there a simple way to detect an existing file?

os.path.exists(filename) or os.path.isfile(filename)

Cheers /F





More information about the Python-list mailing list