[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: KURL isLocalFile media:/
From: Kévin_Ottens <ervin () ipsquad ! net>
Date: 2005-02-12 20:43:50
Message-ID: 200502122143.51328.ervin () ipsquad ! net
[Download RAW message or body]
Le Samedi 12 Février 2005 21:24, Kurt V. Hindenburg a écrit :
> Why does isLocalFile return true for file:///bin/bash, but false for
> media:/part6/log/2005-02-05-07/kdebase? It appears anything with file:/
> returns true and anything media:/ returns false.
Because in KDE isLocalFile is true only for URL in file:/ ...
> I'm trying to allow dropping of media:/ onto konsole. One of the
> conditions for allowing 'cd' and 'ln' is if the link isLocalFile().
If you're able to have a KFileItem, you'll be able to guess this correctly.
You should stat() your URL, allocate a KFileItem instance from the result and
then use the mostLocalURL() method on the resulting object.
Regards.
--
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
>> 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