Edit book: Prevent arrange into folders tool from moving files inside the META-INF folder

This commit is contained in:
Kovid Goyal 2014-01-18 09:20:15 +05:30
parent 4b5a818392
commit 2c75b3c894

View File

@ -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: