How to detect the presence of a html file

Irmen de Jong irmen.NOSPAM at xs4all.nl
Fri Dec 9 17:44:50 EST 2005


BartlebyScrivener wrote:
>> Even weirder,
> 
>> os.path.isfile(r'c://bookmarks.html')
> 
> Never mind. It works that way from the command line, too. Never tried
> it before.

Forward slashes as path separator only works on NTFS volumes I believe.

--Irmen



More information about the Python-list mailing list