W3C home > Mailing lists > Public > uri@w3.org > May 2005

Re: Converting filenames to file: URIs

From: Frank Ellermann <nobody@xyzzy.claranet.de>
Date: Fri, 13 May 2005 13:31:35 +0200
To: uri@w3.org
Message-ID: <42849017.3AE3@xyzzy.claranet.de>

Graham Klyne wrote:

> Windows:
>    Filename C:\foo\bar maps to file:///C:foo/bar

Here, OS/2 and an old Netscape = file:///C:/foo/bar

It's a difference for directories, file:///C: does
not work, file:///C:/ is fine.  Going back to the
parent directory fails from a file:///C:foo/

>    i.e. prepend "file:///" and map \ to /.

Yes, 
 
> What's missing here?

My browsers also eat backslashes and do the mapping
on their own.  Lynx may treat file:/// as ftp:///,
so to be sure I always use file://localhost/

                           Bye, Frank
Received on Friday, 13 May 2005 11:34:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:09 UTC