Detect existing files?

Fredrik Lundh fredrik at pythonware.com
Wed May 2 12:53:08 EDT 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