MediaScanner deletes jpg and gif files
Sunday, May 13, 2012 2:23:37 PM
But then I would not consider it a programming bug. It is more a design bug: The very idea of scanning the entire SD card for pictures to add them to a central database and display them in the gallery is wrong.
- Not all pictures are meant to be displayed by the gallery app. (For example cover art for eBooks and music albums or browser caches)
- It does not scale well. Modern sd cards can now exceed 64GB. Can you even imagine how long it takes to scan one of those once they are full?
- On some devices sd-cards can be removed quite easily.
- On some devices there is more then one sd-cards slot.
- It is difficult to keep the database is sync with the content. For example: Even after adding «.nomedia» to your eBook collection folder the cover art stays in the gallery. A reboot might be needed. And sometimes event that does not help.
- You can get all sorts of horrid bugs. For example when the database sync physically deletes the files from the exclude list.
Don't get me wrong: I properly done and carefully thought out this feature could be helpfully for the less technically minded users. But this takes time. A and a lot of thinking. As it is it is a bloody bodge job.
Just in case you wonder: No I did not loose any files due to this bug (at least I never noticed). But other did. Especially comment 72 is disturbing.