------ art_14455_10772703.1145319473129 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I think the trick is that the file:// is the protocol, and the next / is saying "absolute local path". If you had no third slash.. file://myserver/share/dir will look for a host "myserver". I guess if there wasn't a / before the c: then file://c:/dirwould be looking for a host named "c:". Of course there are more relaxed implementations than the RFC provides.. Cheers ;Daniel On 18/04/06, Berger, Daniel <Daniel.Berger / qwest.com> wrote: > > Hi all, > > Ruby 1.8.4 > Windows XP > > Is this correct? > > require 'uri' > URI.parse("file:///C:/foo/bar").path # => "/C:/foo/bar" > > The leading slash seems wrong to me, but then I'm not familiar with the > RFC's that cover such things. > > Any insight appreciated. > > Thanks, > > Dan > > -- Daniel Baird http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things That Suck) [[My webhost uptime is ~ 92%.. if no answer pls call again later!]] ------ art_14455_10772703.1145319473129--