mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Edit book: Prevent arrange into folders tool from moving files inside the META-INF folder
This commit is contained in:
parent
4b5a818392
commit
2c75b3c894
@ -180,6 +180,8 @@ def rationalize_folders(container, folder_type_map):
|
||||
new_names = set()
|
||||
name_map = {}
|
||||
for name in all_names:
|
||||
if name.startswith('META-INF/'):
|
||||
continue
|
||||
category = mt_to_category(container, container.mime_map[name])
|
||||
folder = folder_type_map.get(category, None)
|
||||
if folder is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user