View Single Post
Old 04-01-2012, 06:53 AM   #23
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,509
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by iwaddo77 View Post
I still maintain that a novice user like myself would not unreasonably expect that Library Check and Maintenance routines would identify database entries with no corresponding folders or formats on disc and give the user chance to update the problem.
Given that calibre specifically supports creating books without formats (Add -> Add empty books), this isn't going to happen, at least by me.

There is no reliable way to distinguish between user-created empty books and books made empty by manipulations of the file system. When libraries are moved between case-sensitive and case-insensitive systems, formats may appear to be gone but are really still there. Deleting the book from the database would be the wrong thing to do, because after that the user has no way to fix the problems. No restore from backup, no change name of folders to match case, nothing. If you want some confirmation of the support difficulties that might arise, do a search for threads from people who are upset that when they told calibre to delete a library, it actually deleted it.

Given the fix I did last week to remove format information from the database in the case where folders are gone, the user has the information needed to take the steps that s/he thinks necessary. I am not going to add features that make it easier to do unintended damage. Of course, someone else might choose to add such features and submit them to Kovid.
chaley is offline   Reply With Quote