# -*- coding: utf-8 -*-
import io, sys, zipfile, os
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
zp = r"D:\work buddy\2026-11-05-14-15-52\publish\美加硕士项目查询库_2026-11-11.zip"
z = zipfile.ZipFile(zp)
names = z.namelist()
home = [n for n in names if n.endswith("index_main.html")]
qr = [n for n in names if n.endswith("quality_report.html")]
det = [n for n in names if "/details/" in n]
print("主页 arc:", home)
print("质检 arc:", qr)
print("details 样例:", det[:3])
# 检查是否有 details 直接散在根目录（无前缀文件夹）
root_det = [n for n in names if n.startswith("details/")]
print("根目录直接 details:", len(root_det))
# 父目录一致性
print("主页父目录:", os.path.dirname(home[0]) if home else "none")
print("details 父目录样例:", os.path.dirname(det[0]) if det else "none")
