[mythtv-users] script to delete files that aren't in the database?
m0j0.j0j0
m0j0 at foofus.net
Fri Aug 22 10:33:42 EDT 2003
On Thu, 2003-08-21 at 13:57, Dane Kantner wrote:
> Not sure if this should go to this list or dev...
>
> Has anyone written a script that will loop through the .nuv/.png files in my
> directory, check the database to see if they're referenced, and delete them
> if not?
This may be what you're looking for... FYI, I haven't used these in a
long time and they may need updating to work with the current Myth. May
delete all your files otherwise. ;)
http://www.foofus.net/m0j0/mythtv/mythVerify.pl
http://www.foofus.net/m0j0/mythtv/mythVerifyR.pl
The first is was posted to this list back in Jan. by someone else. Do a
search on "Langley" for more info. The second script I set to delete any
DB entries for which there is no corresponding file.
Enjoy.
Joe
More information about the mythtv-users
mailing list