Andrew Williams wrote on Thursday, March 01, 2007 12:54 PM: > Are you sure about that? I think he was right. > The protocol for the file access is file:// just as per http://. > The prefix of a unix path is '/' (i.e. /usr/bin/) whereas windows is > the drive 'c:' (i.e. c:/Windows/) etc. > > Thus a unix file URL is file:///path/to/file whereas on > windows it is > file://c:/path/to/file.
The RFC defines the host to follow after the protocol (which can be omitted in case of "localhost"). The slash is already part of the path. So the path portion of a file in Windows starts also with a slash, indicating the "root" of the *complete* file system followed by the drive letter. In Unix-based file system the root is simply "/". http://gbiv.com/protocols/uri/rfc/rfc3986.html#components - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
