<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 January 2015 at 16:58, Rex Dieter <span dir="ltr"><<a href="mailto:rdieter@math.unl.edu" target="_blank">rdieter@math.unl.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> categories of programs<br>
<br>
^^ that. :)</blockquote></div><br></div><div class="gmail_extra">To expand a bit: such categories do not really exist for mimetypes (someone correct me if I'm wrong). You may be able to make use of:<br><br></div><div class="gmail_extra">- The media types, the part of the mimetype before the slash, e.g. 'image', 'audio', 'text'. However, a lot of disparate kinds of file will end up under the 'application' media type, and it may not be what you want - e.g. 'image' does not distinguish between photos and icons.<br></div><div class="gmail_extra">- Building a mapping of mime types to programs used to open them, and then saying that e.g. anything that can be opened by an office application is an office document. Your example shows one possible issue with this: I wouldn't expect a database file to be treated as an office document. In fact, the whole concept of 'office documents' seems like a bizarre categorisation that only came about because a set of proprietary applications was sold as a bundle.<br></div><div class="gmail_extra">- Hardcoded lists and heuristics - e.g. image/jpeg > 100 KB is probably a photo. Be wary of making this too complex, because for backups you want it to be clear to the user what is included in each category.<br><br></div><div class="gmail_extra">Thomas<br></div></div>