kioslave - stat function (newbie)

David Faure david at mandrakesoft.com
Thu Oct 10 09:26:11 BST 2002


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

On Thursday 10 October 2002 00:01, Brad Hards wrote:
> 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()?

Exactly.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9pTnY72KcVAmwbhARAivFAJwMKap22jiwKpZ6jWyU9fCv89YLowCeLnuk
Bl7kxeeaHdjQgRHhwBQ7D+w=
=rqdd
-----END PGP SIGNATURE-----





More information about the kfm-devel mailing list