[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KUrl::toLocalFile ()
From:       Paulo Moura Guedes <moura () kdewebdev ! org>
Date:       2008-01-29 16:35:56
Message-ID: 200801291635.57139.moura () kdewebdev ! org
[Download RAW message or body]

On Tuesday 29 January 2008 16:22:16 Jonas Bähr wrote:
> Hi,
>
> Am 29.01.2008 um 17:02 schrieb Paulo Moura Guedes:
> > On Tuesday 29 January 2008 15:46:45 you wrote:
> >> Paulo Moura Guedes wrote:
> >>> Hi,
> >>>
> >>>    KUrl
> >>> url("sftp://moura@paradigma.pt/home/moura/public_html/index.html");
> >>> kDebug() << url;
> >>>    kDebug() << url.toLocalFile();
> >>>
> >>> Is this expected?
> >>>
> >>> QUrl( "sftp://moura@paradigma.pt/home/moura/public_html/
> >>> index.html" )
> >>> ""
> >>
> >> Yes.
> >>
> >> sftp:// is not local file.
> >>
> >> KUrl is not about downloading stuff (this is not java.net.URL).
> >> It's about
> >> URLs -- parsing and decoding them.
> >>
> >> If you want to get the content, you need KIO.
> >
> > I don't want to get the content, just to parse the URL.
> > I was expecting to get "/home/moura/public_html/index.html" but OK,
> > I'll try
> > to find other function.
>
> Is KUrl::path() perhaps what you're looking for?

Yeah, can't remember why I came up with toLocalFile before :)
Commited change in revision 768226.

Paulo
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic