From kde-devel Tue Jan 29 16:35:56 2008 From: Paulo Moura Guedes Date: Tue, 29 Jan 2008 16:35:56 +0000 To: kde-devel Subject: Re: KUrl::toLocalFile () Message-Id: <200801291635.57139.moura () kdewebdev ! org> X-MARC-Message: https://marc.info/?l=kde-devel&m=120162469506098 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 <<