Where to add file sort priority support?

Sean Pecor sean at digitalspinner.com
Wed Jul 10 19:18:09 BST 2002


On Wednesday 10 July 2002 12:24 pm, Carsten Pfeiffer wrote:
> Anyway, we have a very generic interface to meta information for all kinds
> of files with KFileMetaInfo (in kdelibs/kio/kio).

Thanks for this information - I'll investigate. I might grow old and die 
waiting until extended attributes are supported on all of the OS platforms 
KDE runs on, so this will help me begin preliminary work.

> It's up to you where to store the priority information, be it a database, a
> plain file, or directly in the file. As not all files formats have support
> for saving meta information inside the file, you get problems when files
> are moved around the filesystem.

Yes the attribution may be lost after a file move, but there are some 
imperfect solutions to this problem. 

It just struck me that the file group attribute could be used in a nice way 
for a single machine implementation. You could create, and add your user 
account to, groups like "lowpriority", "highpriority" etc. Then change your 
file properties as needed. Using a theoretical KDE app that could be attached 
to the inode mime type, you could choose a Group name, the directory tree 
would be scanned, and all known mime types would be displayed in a tree view, 
with each mime branch containing under it file for that type. You could then 
click the Mpeg Audio mime type and Noatun would begin playing your matches in 
sequence.

If groups are used, then the file can be moved around the local filesystem 
with no problem. You couldn't have multiple group assignments for one file 
though. 

Sean.

-- 
Digital Spinner, Inc.
Cutting edge web design and applications development.
http://www.digitalspinner.com
http://www.groupit.org
Phone: 802.948.2020
Fax: 802.948.2749





More information about the kfm-devel mailing list