fix a bug in zip extractor
This commit is contained in:
parent
32ca394d91
commit
6072bb188c
@ -202,7 +202,7 @@ class ZipExtractor(IExtractor):
|
|||||||
|
|
||||||
def _get_markdown_files(self, zip_file: zipfile.ZipFile) -> List[str]:
|
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:
|
Args:
|
||||||
zip_file: Open ZipFile object
|
zip_file: Open ZipFile object
|
||||||
@ -225,6 +225,11 @@ class ZipExtractor(IExtractor):
|
|||||||
logger.debug(f"Skipping hidden/system file: {filename}")
|
logger.debug(f"Skipping hidden/system file: {filename}")
|
||||||
continue
|
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
|
# Check for .md extension
|
||||||
if filename.lower().endswith('.md'):
|
if filename.lower().endswith('.md'):
|
||||||
md_files.append(filename)
|
md_files.append(filename)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user