fix a bug in zip extractor

This commit is contained in:
m.dabbagh 2026-01-18 20:57:01 +03:30
parent 32ca394d91
commit 6072bb188c

View File

@ -202,7 +202,7 @@ class ZipExtractor(IExtractor):
def _get_markdown_files(self, zip_file: zipfile.ZipFile) -> List[str]:
"""
Get sorted list of Markdown files from ZIP, filtering hidden files.
Get sorted list of Markdown files from ZIP, filtering hidden files and 'nohf' files.
Args:
zip_file: Open ZipFile object
@ -225,6 +225,11 @@ class ZipExtractor(IExtractor):
logger.debug(f"Skipping hidden/system file: {filename}")
continue
# Skip files with 'nohf' in their name
if 'nohf' in filename.lower():
logger.debug(f"Skipping 'nohf' file: {filename}")
continue
# Check for .md extension
if filename.lower().endswith('.md'):
md_files.append(filename)