06-09-2015, 03:00 PM | #1 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Removing directories on device (Jetbook Mini)
Love using calibre with my Jetbook Mini. Conversions are decent out-of-the-box. (I haven't taken time to try to tweak ePub-to-FB2 formatting, if that's even possible.)
However, when I remove books from the Mini, the author directories are left behind. This results in having a folder for every author that I have ever sent to the reader, and it clutters the interface when I'm looking for something to read. Is there a way to tell calibre to remove the author directories when all books have been removed that are by that author? I know that the index files are necessary, and that removing them requires the Mini to regenerate them if the book is restored to it, but that is utterly acceptable to me. I will open a bug-report if necessary, but perhaps someone here knows if this is possible to implement currently. Much aloha. |
06-09-2015, 03:05 PM | #2 |
Well trained by Cats
Posts: 30,378
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Try the Quality check PI
There is some (folder) cleanup code that was implemented before Connect to Folder was created. It might work for you. As always, back up data on your device... just in case things head deep |
Advert | |
|
06-09-2015, 05:15 PM | #3 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Took a look, I don't see anything related? It seems to be about cleaning up ePubs -- I'm asking about the directory structure on the device itself.
Aloha. |
06-09-2015, 05:21 PM | #4 |
Well trained by Cats
Posts: 30,378
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
06-09-2015, 06:17 PM | #5 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Thanks for the help, but I don't think this is what I'm looking for. It's likely to be something in the Jetbook "driver", or whatever it is actually called.
Aloha. |
Advert | |
|
06-09-2015, 06:40 PM | #6 |
Grand Sorcerer
Posts: 11,942
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
06-09-2015, 09:10 PM | #7 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Would this be a feature request, then? Or is it outside the pale for technical reasons?
|
06-10-2015, 08:00 AM | #8 | |
Grand Sorcerer
Posts: 11,942
Karma: 7219261
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
I just tried it with the folder device, using a template of "a/b/c/{authors}/{title} - {authors} ({id})". I sent a book and verified that the a/b/c/... path was there. I then deleted the book and the path disappeared. I have no idea why this isn't happening for you. Are there other files being put into the book directories by the jetbook? If so then calibre will not delete the directory. |
|
11-19-2015, 05:19 PM | #9 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Sorry it's taken so long to get back to this thread. Life has interfered.
I think that the jetbook creates index files when it opens the book for the first time. Is it possible that that is what's causing it? Could the driver have a little override that says "remove everything regardless of extant files in the folder"? |
11-19-2015, 06:45 PM | #10 |
Well trained by Cats
Posts: 30,378
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You might look at the code in the Quality Check PI: Cleanup files and folders.
Kiwidude added that at my request for my RMSDK based Astak. I don't Know what this will do on something else. Ya know, the Fix section in this PI should really be broken out as the main thrust of the PI is to REPORT. THEN Solutions for some of these most excellent repair issues could be added |
11-20-2015, 01:41 AM | #11 | |
Ex-Helpdesk Junkie
Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Then, when calibre is used to "Delete from Device", it will get rid of those. If the Jetbook is storing index files for the book, I think it would be entirely appropriate for the corresponding driver to include that. So -- I assume for each "ebook.fb2" there is what, an "ebook.db"? In that case, file a bug report and ask that '.db' be added to DELETE_EXTS for the Jetbook Mini (and whichever other Jetbook devics may share that behavior -- I see there are drivers for three distinct devices) |
|
11-20-2015, 04:23 PM | #12 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Just deleted one, and there were three files remaining after calibre deleted the book -- all have the same basename: 15533251 and the following extensions: TX2, IDX and IM2.
Should I open a ticket? or is there an easy way to tell the driver to take these along when I delete the book? |
11-20-2015, 11:33 PM | #13 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The wat DELETE_EXTS works is that it will function only if the extra files have the same basename as the book file, but a different extension. If that is not the case the driver will need to re-implent the delete_extra_book_files() function.
|
11-21-2015, 01:59 AM | #14 |
Not who you think I am...
Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
Yeah, that's not the basename of the book file. They're definitely created by the opening of the book in the reader -- there is a "please wait" screen that pops up saying that the book is being formatted.
Let me know what you'd like me to do, if I can help to make this possible. |
11-21-2015, 03:07 AM | #15 |
creator of calibre
Posts: 44,356
Karma: 23661992
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If there is no way to determine the filename of the files to be deleted, I dont see how this can be implemented safely. In the general case a folder may contain these sidecar files from multiple books, how does the driver know which files correspond to the book it is deleting?
|
Tags |
author, directory, folder, jetbook, mini |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
jetBook Color Black on sale for $375 + jetbook mini for Free | Kris777 | Ectaco jetBook | 0 | 02-12-2013 10:16 PM |
review: Jetbook VS Jetbook Mini | ProDigit | Ectaco jetBook | 0 | 02-22-2012 06:11 PM |
mini HOWTO: removing unwanted system apps | tarvoke | enTourage eDGe | 9 | 10-09-2011 08:35 PM |
Send to device with conditional directories | Doug-W | Devices | 8 | 03-06-2011 10:35 AM |
Jetbook Mini | silverraven | Ectaco jetBook | 23 | 12-31-2010 01:48 AM |