Exclude folder names from “Check Library” results

Bug #1998705 reported by Jeff
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

In Calibre Library → Library Maintenance → Check Library, field “Extensions to ignore” can be used to exclude certain file extensions. Is it possible to add functionality to similarly exclude certain folder names?

Revision history for this message
Charles Haley (cbhaley) wrote :

You can already do that by adding the folder names to the "Names to ignore" box.

Names can be shell patterns. See https://docs.python.org/3/library/fnmatch.html

Changed in calibre:
status: New → Invalid
Revision history for this message
Jeff (annoywife) wrote :

Thanks. Within the folder of an arbitrary Calibre item, I have created an empty folder named TEST. To exclude, I have filled the “Names to ignore” box with both TEST and subsequently *TEST*, but the empty folder TEST continues to be included in both cases. What is the correct string to exclude it?

Revision history for this message
Charles Haley (cbhaley) wrote :

Ahh, you want to ignore folders inside a book.

I can make the ignored names work in a book folder but it isn't a good idea. Files (unknown to calibre) & folders inside a book are lost if you change the title or the author(s) of the book.

I will change the status to "new", then follow kovid's advice on this.

Changed in calibre:
status: Invalid → New
Revision history for this message
Kovid Goyal (kovid) wrote :

I suggest letting the pattern match only files and folders at the top level inside the book folder.

Revision history for this message
Charles Haley (cbhaley) wrote :

I added tooltip text saying that ignoring folders and files in book folders is asking for data loss.

I also added the ability to open the check dialog when no errors were detected to make it easier to change settings.

Changed in calibre:
status: New → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.