View Single Post
Old 02-28-2014, 09:17 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,399
Karma: 27756918
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.
kovidgoyal is online now   Reply With Quote