处理单个文件,返回 (索引, 成功标志, 文件名, 消息)
(file_path: str, idx: int)
| 273 | # 多线程处理 |
| 274 | else: |
| 275 | def process_file(file_path: str, idx: int) -> tuple[int, bool, str, str]: |
| 276 | """处理单个文件,返回 (索引, 成功标志, 文件名, 消息)""" |
| 277 | success, message = run_cfr(cfr_path, file_path, output_dir) |
| 278 | return idx, success, os.path.basename(file_path), message |
| 279 | |
| 280 | with ThreadPoolExecutor(max_workers=max_workers) as executor: |
| 281 | # 提交所有任务 |