How to detect the presence of a html file

Tim Roberts timr at
Sat Dec 10 09:19:26 CET 2005

Irmen de Jong <irmen.NOSPAM at> wrote:
>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.

Wrong.  They work on all Microsoft operating systems back to at least
MS-DOS 5, and on every version of Windows.

The command interpreters don't accept them, but all of the APIs do.
- Tim Roberts, timr at
  Providenza & Boekelheide, Inc.

More information about the Python-list mailing list