Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-10-2025, 11:29 PM   #1
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 936
Karma: 53902736
Join Date: Jun 2015
Device: multiple
How Can I Check for File Path Issues?

I've encountered some file path issues. I'm not sure how to predict these and protect against them.

1. If I'm exporting books to certain devices, especially Android devices, these will truncate long file paths.

2. If I'm transferring my library to a Windows computer, it will refuse to import files with long file paths.

The best I can see is to *manually* go through the book list and pre-emptively truncate or abbreviate each long title, and each author list. Which makes it a pain to re-type these when it's time to cite these books. But if there's some way to identify books which *might* cause trouble, that would help.
MarjaE is offline   Reply With Quote
Old 05-10-2025, 11:46 PM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
My personal workaround is to use template when saving to disk or exporting to devices.

For saving to disk, I use:

Code:
{author_sort:sublist(0,1,&)}/{series:|[|} {series_index:0>2s||] - }{title} - {authors:sublist(0,1,&)}
Basically, books are saved into a directory based on the first entry in the author sort (the sublist(0,1,&) bit) with a filename consisting of the series/series index if it exists followed by the book title and the first author name.

i.e. Nonymous, Ann/Font Tester V3 - Ann Nonymous.epub

For sending to device I use:

Code:
eBooks/{author_sort:sublist(0,1,&)}/{title} - {authors:sublist(0,1,&)}
Basically, a directory called eBooks in the root of the device, followed by a directory based on the first entry in the author_sort and the filename based on the title followed by the first author name.

eBooks/Nonymous, Ann/Font Tester V3 - Ann Nonymous.epub

I don't include the series/series index for sending to device since my Kobo ereader handle series.

The sublist(0,1&) is the key to shortening the paths for me. I already trim book titles to the basic title trimming all the crap off. One recent example was a book my spouse purchased whose title was:

Fall I Want: A Heartwarming, Spicy Small-Town Romance Featuring a Billionaire's Unexpected Love, Fake Relationships, and Autumn Magic—Perfect for Fans ... Spice Café (Cozy Creek Collection Book 1)

The author stated the ebook left her with the title of fall i want. Anything else was added by Amazon. Even Amazon had to trim the Perfect for Fans of multiple random authors to shorten the title.
DNSB is offline   Reply With Quote
Advert
Old 05-11-2025, 01:40 AM   #3
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 936
Karma: 53902736
Join Date: Jun 2015
Device: multiple
For export, I include genre folders, and not author name folders; that saves a lot of trouble finding and comparing works on the same topic, but either way, that can be too much to export to Android.

For transfer, Calibre includes author name folders, and includes the title and the 1st author name in the filename; since most papers have subtitles, that can be too much to import into Windows.

Last edited by MarjaE; 05-11-2025 at 01:45 AM.
MarjaE is offline   Reply With Quote
Old 05-11-2025, 06:52 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,131
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I cannot stand author named directories on my Reader. I use a directory called books which I have all of my eBooks on my Reader stored. It saved the hassle of the mess author named directories can cause.
JSWolf is offline   Reply With Quote
Old 05-11-2025, 12:46 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Oddly, I seldom look at the directories on my ereader but I do like the author sort directories. Much like your endless whinging about Vellum where you find the code it generates overly complex, most people are content to read the books and not worry about their structure.

Though I am curious as to what mess author named directories can cause? I do limit the use to the first entry in either the author_sort or author to avoid path length issues but what issues do you find with them?
DNSB is offline   Reply With Quote
Advert
Old 05-11-2025, 03:52 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,131
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Oddly, I seldom look at the directories on my ereader but I do like the author sort directories. Much like your endless whinging about Vellum where you find the code it generates overly complex, most people are content to read the books and not worry about their structure.

Though I am curious as to what mess author named directories can cause? I do limit the use to the first entry in either the author_sort or author to avoid path length issues but what issues do you find with them?
It can lead to many empty directories and if you use KoReader, you can have a job finding a book because you are checking empty directories.
JSWolf is offline   Reply With Quote
Old 05-11-2025, 07:12 PM   #7
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Interesting. I've use author_sort named directories for quite a few years. I just checked all the Kobo ereaders I'm currently using (Clara HD, Forma, Sage, KLC) and do not see any empty directories in the ebooks directory on any of them. Please note that since I use calibre to manage my ebooks, all deletions are done from calibre.

Fascinating that you are whinging about KOReader and empty directories. When I use KOReader, I use it's ability to search the metadata.calibre file instead of browsing through directories since so much faster and fewer taps. Are you really slowly browsing through a single directory with however many 1000s of ebook files in it rather than looking at the author sort named directories?

Out of curiosity, how long have you been using KOReader as your primary reading tool?
DNSB is offline   Reply With Quote
Old 05-12-2025, 05:48 AM   #8
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,131
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
Interesting. I've use author_sort named directories for quite a few years. I just checked all the Kobo ereaders I'm currently using (Clara HD, Forma, Sage, KLC) and do not see any empty directories in the ebooks directory on any of them. Please note that since I use calibre to manage my ebooks, all deletions are done from calibre.

Fascinating that you are whinging about KOReader and empty directories. When I use KOReader, I use it's ability to search the metadata.calibre file instead of browsing through directories since so much faster and fewer taps. Are you really slowly browsing through a single directory with however many 1000s of ebook files in it rather than looking at the author sort named directories?

Out of curiosity, how long have you been using KOReader as your primary reading tool?
I used to use KoReader a lot more on my H2O. But I don't use it so much on my Libra 2. I really should update it.

I've been deleting eBooks from my Libra 2 since I start keep track of the reading position. But I can see many people deleting from the Kobo and leaving empty author directories (if they use calibre).

Last edited by JSWolf; 05-12-2025 at 05:51 AM.
JSWolf is offline   Reply With Quote
Old 05-12-2025, 05:39 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
A bit strange, Jon. I just sent 11 ebooks to my device that were singletons so 11 different authors. After the files were imported, I checked that I could open them. I then reconnected to calibre and deleted the files from calibre's remove matching books from device and oddly, the empty directories were also deleted. I did not test this by deleting books from the Kobo GUI since your statement above seems to say that using calibre to delete the last book in a directory does not also remove the directory.
DNSB is offline   Reply With Quote
Old 05-13-2025, 04:28 AM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,131
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
A bit strange, Jon. I just sent 11 ebooks to my device that were singletons so 11 different authors. After the files were imported, I checked that I could open them. I then reconnected to calibre and deleted the files from calibre's remove matching books from device and oddly, the empty directories were also deleted. I did not test this by deleting books from the Kobo GUI since your statement above seems to say that using calibre to delete the last book in a directory does not also remove the directory.
I created an author directory on my Kobo. I put a book in this directory. I deleted this eBooks from the Kobo using Kobo's UI and the directory is still there but is now empty.
JSWolf is offline   Reply With Quote
Old 05-13-2025, 12:15 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
I've been deleting eBooks from my Libra 2 since I start keep track of the reading position. But I can see many people deleting from the Kobo and leaving empty author directories (if they use calibre).
Quote:
Originally Posted by DNSB View Post
I just sent 11 ebooks to my device that were singletons so 11 different authors. After the files were imported, I checked that I could open them. I then reconnected to calibre and deleted the files from calibre's remove matching books from device and oddly, the empty directories were also deleted. I did not test this by deleting books from the Kobo GUI since your statement above seems to say that using calibre to delete the last book in a directory does not also remove the directory.
Quote:
Originally Posted by JSWolf View Post
I created an author directory on my Kobo. I put a book in this directory. I deleted this eBooks from the Kobo using Kobo's UI and the directory is still there but is now empty.
Jon, Jon, Jon... Please read what you write. In your first post, you wrote "leaving empty author directories (if they use calibre). In your response to my post stating that calibre removes the directory when the last book file in it is deleted, you now claim that you are using the Kobo GUI to delete the file and the directory is left after the last file is deleted.

Please let us know by what convoluted logic you went from one statement where you explicitly stated "I can see many people deleting from the Kobo and leaving empty author directories (if they use calibre)" to your response about using the Kobo GUI to delete files. I most certainly hope that you do realize that calibre and Kobo's GUI are not the same?
DNSB is offline   Reply With Quote
Old 05-13-2025, 01:34 PM   #12
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I have submitted an enhancement request on the Kobo Utilities gitHub to add a function to clean-up empty directories.
PeterT is offline   Reply With Quote
Old 05-13-2025, 02:34 PM   #13
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,905
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by PeterT View Post
I have submitted an enhancement request on the Kobo Utilities gitHub to add a function to clean-up empty directories.
It is already in Quality Check: Fix section (Kiwidude added it way back in the beginning. I tried it on my Kobo and it found-fixed 62 cases )
theducks is offline   Reply With Quote
Old 05-13-2025, 03:48 PM   #14
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,828
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I'm assuming that you are referring to the Cleanup .opf files/folders option under Fix? It didn't find anything in my library folder on my Sage. I then tried deleting one of my test files from the Kobo GUI and the directory was cleaned up when I connected to calibre and used Quality Check:Fix.
DNSB is offline   Reply With Quote
Old 05-13-2025, 05:43 PM   #15
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,306
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by theducks View Post
It is already in Quality Check: Fix section (Kiwidude added it way back in the beginning. I tried it on my Kobo and it found-fixed 62 cases )
UGH. I'd like it to skip certain locations on the Kobo!
PeterT is offline   Reply With Quote
Reply

Tags
compatibility, file paths


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with the Spell Check Frenchdummy Calibre 4 02-14-2017 07:53 AM
Check book 'omits' message about large file (File browser) chaot Editor 1 06-02-2016 01:33 PM
File path JimmyG Sigil 1 02-15-2013 12:40 PM
File Path iceman00 Calibre 6 04-24-2010 04:35 PM
Remove file path from PDF file DuckDodgers PDF 1 08-13-2006 09:23 AM


All times are GMT -4. The time now is 07:33 AM.


MobileRead.com is a privately owned, operated and funded community.