Tagsistant icon indicating copy to clipboard operation
Tagsistant copied to clipboard

top level mimetypes - e.g. all images

Open milahu opened this issue 8 years ago • 1 comments

in folder 'tagsistant_mount/store/file:/mimetype/' i miss top-level type names, without subtypes.

...so i can easily:

  • list all images
  • list all videos
  • list all text files
  • list all audio files ...

'The currently registered top-level type names are: application, audio, example, image, message, model, multipart, text, video.' https://en.wikipedia.org/wiki/Media_type

milahu avatar Apr 11 '16 10:04 milahu

You can easily implement this by creating the top-level triple tags and then establishing relations between those and their more specific counterparts, like in:

$ mkdir -p mpoint/tags/file:/mimetype/audio
$ mkdir -p mpoint/relations/file:/mimetype/audio/includes/file:/mimetype/audio-mp3
$ mkdir -p mpoint/relations/file:/mimetype/audio/includes/file:/mimetype/audio-wav

and so on. May be this should be added to the bootstrap SQL script executed to declare the DB schema.

StrumentiResistenti avatar Apr 11 '16 22:04 StrumentiResistenti