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

Scott Wheeler wheeler at kde.org
Wed Jan 19 00:07:34 GMT 2005


On Tuesday 18 January 2005 22:00, Richard Smith wrote:

> > A URL pointing at a file should never start with \\, right? So, why
> > couldn't you test on that?
>
> # mkdir '/\\server\share\path\Functional Spec.doc'
> $ konqueror 'file:///\\server\share\path\Functional Spec.doc'
>
> Works for me. Takes me to /\\server\share\path\Functional Spec.doc/, just
> as it should.

That's nice, I'm quite certain you've found the common case.

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.

-Scott

-- 
If you want to get laid, go to college, but if you want an education, go to 
the library.
--Frank Zappa




More information about the kde-core-devel mailing list