kioslave - stat function (newbie)

Brad Hards bhards at bigpond.net.au
Wed Oct 9 23:01:54 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 9 Oct 2002 18:56, David Faure wrote:
> Your stat() implementation looks fine, but if you want to see entries in a
> directory listing, you need to implement listDir().

Thanks. Now implemented, and my trivial example is now ready for expansion to 
do something useful :)

> stat() is mostly used to know if a given URL is a file or a directory (not
> obvious from the URL, e.g. http://www.kde.org/ is a file ;), and also to
> know its size, mimetype, etc. But that's all for a single URL.

I'm not certain I understand this bit. Are you saying that if the user enters 
a specific URL (http://www.kde.org/), the kio core will call stat() to find 
out if it is a directory (which it might be:) or a file (which it is, in this 
case)?
If it is a directory, then listDir(), else get()?

Brad

- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9pKdSW6pHgIdAuOMRAsKlAJ93+2Cpftd57XGD3Qd484Hvs28wpACeP1F5
DovlZamCJEMfeG5LD4DZdZU=
=tzgd
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list