Translation of \\foo\bar links into smb://foo/bar links

Thiago Macieira thiago.macieira at kdemail.net
Wed Jan 19 02:51:36 GMT 2005


Scott Wheeler wrote:
>Guess what "mkdir '/http:'" does?  I guess you're for getting rid of all
> of that parsing too since 'http:' is a perfectly valid folder name? 
> ;-)
>
>Remember all of this parsing is about convenience -- whether http://,
> ftp://, smb:// or \\.  We're really just trying to guess what the
> content might mean so that we can do something appropriate with it that
> makes the users life easier.

There's a difference here. URLs can't be ambiguous. They wouldn't be 
Universal if the same URL could point to more than one resource.

If you had a file called:
	/http://a.site.com

Its URL would be:
	file:///http:%2f%2fa.site.com

By the same token, the URL
	file:///%5c%5cservername%5csharename
can only point to the *local* file
	/\\servername\sharename

Windows systems don't allow that file to exist, instead pointing to a 
network resource. Unix-based systems do.

-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050119/eb17d157/attachment.sig>


More information about the kde-core-devel mailing list