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

List:       kde-devel
Subject:    Re: KUrl::toLocalFile ()
From:       Jonas_Bähr <jonas.baehr () web ! de>
Date:       2008-01-29 16:22:16
Message-ID: 1BCE2517-F77D-49BE-9481-234385250A0E () web ! de
[Download RAW message or body]

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?

bye,
Jonas

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

 
>> 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