![]() |
#1 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Arrange into folders not working properly
Using calibre 1.26 I noticed that my e-reader did not show a picture. Via the "Check Book" function of the Book Editor, I discovered that the picture was unknown because it was located in a directory "/images/", instead of the expected "/Images/". I tried to solve that via the "Arrange into folders" function which seemed to work as thereafter the "Check Book" function did not reported any problems. So I saved the e-pub, but noticed the picture was still not showing. Opening the epub again with the Book Editor I discovered that the folder was still named "/images", while "Check Book" now reported again that the picture was unknown.
Apparently, the "Arrange into books" function does not actually rename the directory, but "somehow reports success to "Check Book" so the latter refrains from reporting errors until you save/close/re-open the epub. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,331
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You are on a case insensitive filesystem. Trying to change the case of folder names will break on that, since the filesystem will report that the file exists regardless of the case. Someday I have to get around to implementing fixes for that, but in the meantime dont try to change the case of folder names if you are on a case insensitive filesystem.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Bookish
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,017
Karma: 2003162
Join Date: Jun 2011
Device: PC, t1, t2, t3, Clara BW, Clara HD, Libra 2, Libra Color, Nxtpaper 11
|
Ok, I will keep that in mind. Luckily, it does not happen that often so I can live with it for the moment. Thanks!
|
![]() |
![]() |
![]() |
#4 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
|
Do it in two steps. First, change the name to something totally unrelated. "foo", say. Then change it to the properly capitalized name. "images" -> "foo". Then "foo" -> "Images".
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,331
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Even that wont work. What will happen in that when calibre asks the OS to rename foo/image to Images/img, if the images folder already exists, the OS will rename it to images/image instead of Images/image. The only way to make it work is for calibre to check the actual path created by the os for every rename operation and then either:
1) Rename the folders in the path explicitly, individually, and then change the links to all files in the renamed folders 2) Alternately detect that there is a case mismatch on renaming the file and change the links for just that file to use the existing filesystem case. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 119
Karma: 64428
Join Date: Aug 2011
Device: none
|
Ah, I see. I wasn't considering the entire problem, just the one of changing the case a single folder or file.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Tool: Arrange into Folders | eschwartz | Editor | 5 | 01-23-2014 10:55 PM |
Links not working properly? | dokkeynot | Sigil | 1 | 06-27-2012 02:04 PM |
Kindle for pc not working properly | bodhran | Amazon Kindle | 4 | 09-18-2011 01:45 PM |
Classic Trook rev53 is not working properly with Calibre | mos | Nook Developer's Corner | 12 | 03-26-2010 08:14 AM |
lrf files not working properly | munty | LRF | 4 | 01-25-2009 05:01 PM |