View Single Post
Old 01-25-2022, 08:41 AM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Yes, it is the total length of the file name. The driver limits the total path length to 185 characters. This is because of the limitations in FAT32 for the path length and that some of it is used by by the device. Calibre uses the template to generate the file name and then fiddles with it if it is to long. That fiddling is by removing characters from the middle of different parts of the path. So, "Books" become "Bks" and "Reference" becomes "Rece".

Are you sure about the save template? You seem to be saying you are using:

Code:
Books/{author_sort}/{title}
But that doesn't match the examples you have given. You mention "Books/{shelf}/{sort author}" as where the books are. From that and the examples, it looks like you are using:

Code:
Books/{shelf}/{author_sort}/{title} - {author}
And with multiple authors, that will give produce a long path.

Are you looking at this in the driver configuration? If you change the save template on the "Sending books to devices" page, it doesn't change what the driver uses.

I don't know how to fix this, except to ask why does it matter? Kobo devices don't care. They use the path internally, but, don't really show it. They work off the metadata in the book. If you want to shorten the path, and you are using the shelf, then drop the "Books". That reduces the entries in the root directory on the device. Otherwise, you could do something like only use the first author instead of the full author_sort. Or drop the author from the filename part.
davidfor is offline   Reply With Quote