Detect existing files?

Marcin 'Qrczak' Kowalczyk qrczak at
Wed May 2 20:35:18 CEST 2001

Wed, 2 May 2001 21:24:57 +0400 (MSD), Roman Suzi <rnd at> pisze:

>>> Now my question: Is there a simple way to detect an existing file?
> I am using glob.glob(file) usually - and it is the slowest method :-(

It has a different meaning. For example it tells that the file "*"
is present if any file is present; but open("*") will fail unless
the file named "*" exists.

 __("<  Marcin Kowalczyk * qrczak at
  ^^                      SYGNATURA ZASTĘPCZA

More information about the Python-list mailing list