Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Push using file:// protocol

UNC paths should have five slashes.
The logic being a url is constructed as follows:

file://<optional server>/<path on server>
generally the server is left blank (localhost) as there is no standard on how a file url should behave if you do specify a server.
The path will be the unc path with the slashes switched
Eg \\remoteserver\remotepath\file -> //remoteserver/remotepath/file

Giving you a final form of


> -----Original Message-----
> From: egit-dev-bounces@xxxxxxxxxxx [mailto:egit-dev-
> bounces@xxxxxxxxxxx] On Behalf Of Alex Blewitt
> Sent: 10 February 2011 22:45
> To: Alex Blewitt
> Cc: egit-dev@xxxxxxxxxxx
> Subject: Re: [egit-dev] Push using file:// protocol
> On 10 Feb 2011, at 22:43, Alex Blewitt <alex.blewitt@xxxxxxxxx> wrote:
> > On 10 Feb 2011, at 21:22, Chris Aniszczyk <caniszczyk@xxxxxxxxx>
> wrote:
> >
> >> That URI looks a bit bogus... four slashies... and not sure if
> that's
> >> a valid path on a windows machine?
> >
> > Is it supposed to be a UNC path like \\server\share? I'm not sure
> whether you translate the / for \ in that case.
> (and if it is, does it work if you map it to a drive letter (say, p:)
> and then push to file:///p:/ ?
> _______________________________________________
> egit-dev mailing list
> egit-dev@xxxxxxxxxxx

This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@xxxxxxx and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00

Back to the top