Originally Posted by Mackx
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.