daemon: remove from db files with dtime older than a given date.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 17:25:26 +0000 (15:25 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Wed, 4 Dec 2013 17:28:52 +0000 (15:28 -0200)
commitfe25a4983d270dc3acc206d516c0c6977a2dfc80
treeccff5e83f884ac7b61d0ed78ba3566b73631718e
parentdb0f9604335db95658fd37c4677eb33769acb3ee
daemon: remove from db files with dtime older than a given date.

LightMediaScanner will not delete the database entries for files that
are gone, instead it will mark the 'dtime' column with current
timestamp. This allows fast restore of files from a removable media,
but can grow the database too much if these are never purged from time
to time.

This commit introduces --delete-older-than=DAYS (-d=DAYS) that will
always purge entries older than the given number of days, or negative
value to disable this behavior.
src/bin/lightmediascannerd.c