Re: Remove files not in database



 Dougie, I wrote that script a while back, see:
http://michaeljaylissner.com/blog/script-to-cleanup-fspot-database

But it does the opposite of what you are hoping it does -- it finds orphans in
the f-spot database, and then deletes the database entries. It's also not
updated for the latest database model, IIRC. If you wanted to spin the code into
a repo, and add the functionality you're considering, I'd be down to participate
in that, but I have no time for doing any code development at the moment.

I'd see it as two steps though:
 1. Write some simple code to do database identification
 2. Add some code to provide an options menu, and to take care of the cleanup
you're considering.

Mike

Dougie Nisbet wrote on 09/17/2010 02:46 PM:
>  I've just had an accident with f-spot (
> https://bugzilla.gnome.org/show_bug.cgi?id=629963 ) and got round it by
> removing about 1000 images from the catalogue. I suspect that I now have a lot
> of images on disk that don't exist in the catalogue. The details are
> unimportant suffice to say I'd be very interested in tidying up my /jpegs tree
> and removing any files that are not known to f-spot.
>
> Some time ago (Oct 2009) there was discussion of orphaned files and a script
> uploaded (http://paste.ubuntu.com/292946/) that looks promising. I've been
> reviewing the thread and I'm not certain whether it works with 0.8.0 and
> whether it has a -dry-run type option (aha - I see 'demomode'). I'm a bit
> scared to run it even though everything's backed up. Am I right in thinking
> that it will physically remove files from the disk that are not known in
> f-spot's catalog?
>
> Thanks,
>
> Dougie
>
> _______________________________________________
> f-spot-list mailing list
> f-spot-list gnome org
> http://mail.gnome.org/mailman/listinfo/f-spot-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]