Proposal: Extended Attribute support in Kioslave: File

David Faure faure at kde.org
Tue May 9 10:21:58 BST 2006


On Friday 05 May 2006 20:21, John Tapsell wrote:
> Hi,
>   Could you also add a function to return the size of the file on
> disk.  I have filed a bug/wish against qt for this, but I doubt it
> will be done in QFile.  If you are working in this area could you add
> it to the kioslave instead?  This is particulary useful for those of
> us who have sparse files.
> 
> If you aren't sure exactly how to do it I can offer some pointers.
> (Basically use stat to get the number of blocks it uses and multiple
> by block size)

I don't see much relation with xattr and mimetypes...
This information would basically require a new KIO::UDS_SIZEONDISK enum value,
and support for showing it in the properties dialog (I guess that's where you'd want it?)

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).





More information about the kde-core-devel mailing list