system kioslave and KURL::isLocalFile()

Andras Mantia amantia at kde.org
Wed Jul 27 08:14:52 BST 2005


On Wednesday 27 July 2005 08:19, Kévin Ottens wrote:
> Le Mardi 26 Juillet 2005 22:17, Christian Loose a écrit :
> > Now what is the correct way for the above check? Should I use
> > KIO::NetAccess::mostLocalURL(url, 0).isLocalFile() instead?
>
> Yes, or the mostLocalURL() method or KFileItem if you have such
> objects.

Isn't this a bit overkill? Static a file can be expensive and until now 
we could rely that isLocalFile() is a fast method. Can system:// and 
home:// be not a local file? If it cannot be, I think the check in KURL 
should be modified.

Andras
>
> Regards.

-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- 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/20050727/5dab9428/attachment.sig>


More information about the kde-core-devel mailing list