Files
2nd/scratch/find_wip_placeholders.py
T

29 lines
860 B
Python

import os
base_path = r'E:\Wiki\2nd\10_Wiki\Topics'
junk_phrases = [
"지식 요약 정보 추출 중...",
"본문 구조화 작업 중...",
"신규 문서로, 기존 정보와의 충돌 분석 예정."
]
found_files = []
for root, dirs, files in os.walk(base_path):
for f in files:
if f.endswith('.md'):
file_path = os.path.join(root, f)
if len(file_path) > 240: continue
try:
with open(file_path, 'r', encoding='utf-8', errors='ignore') as f_obj:
content = f_obj.read()
if any(phrase in content for phrase in junk_phrases):
found_files.append(file_path)
except:
pass
print(f"Found {len(found_files)} in-progress placeholder files.")
for f in found_files:
print(f"{f}")