How to detect the presence of a html file
Tim Roberts
timr at probo.com
Sat Dec 10 03:19:26 EST 2005
Irmen de Jong <irmen.NOSPAM at xs4all.nl> 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 probo.com
Providenza & Boekelheide, Inc.
More information about the Python-list
mailing list