Detect existing files?

Roman Suzi rnd at onego.ru
Wed May 2 15:50:02 EDT 2001


On 2 May 2001, Marcin 'Qrczak' Kowalczyk wrote:

>> 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.

This way I check for more than one file at once.


Sincerely yours, Roman Suzi
-- 
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Wednesday, May 02, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ "Cats have nine lives - but sleep through eight of them." _/





More information about the Python-list mailing list