不显示split.txt 和 source.txt

This commit is contained in:
wvivi2023 2024-01-08 14:53:13 +08:00
parent 51d9bea1c4
commit 9d8ee7717c
1 changed files with 4 additions and 0 deletions

View File

@ -60,6 +60,10 @@ def list_files_from_folder(kb_name: str):
for x in ["temp", "tmp", ".", "~$"]:
if tail.startswith(x):
return True
if "_source.txt" in tail.lower() or "_split.txt" in tail.lower():
return True
return False
def process_entry(entry):