View Single Post
Old 07-02-2011, 08:32 AM   #65
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
Quote:
Originally Posted by Mackx View Post
Deleting from mdbindex is not the most challenging (it is always per file), but deleting a complete folder from the UI is. I had to add an extra query to get the involved files and delete their icons one-by-one.
I've completed the code to delete covers file when a file is marked as UKNOWN in mdbindex, now I'm working in the code that gets all the files under a directory the user is deleting from CTB.
What I'm doing is:
- run "find /path"
- parse the lines building a list of file
- split in dirname, basename
- get file_id
- remove covers files

As I've said, I'll finish it tomorrow as I have to go out in half an hour, and then push to BB.
Iņigo is offline   Reply With Quote