import os, json, datetime
BASE = r"C:\game-server\updates"
wdfdir = os.path.join(BASE, "files", "client", "assets", "wdf")
print("=== wdf files on disk: name | sizeMB | mtime ===")
if os.path.isdir(wdfdir):
    for n in sorted(os.listdir(wdfdir)):
        p=os.path.join(wdfdir,n)
        if os.path.isfile(p):
            st=os.stat(p)
            print(f"  {round(st.st_size/1024/1024,1):>8} MB  {datetime.datetime.fromtimestamp(st.st_mtime)}  {n}")
# deploy sidecar
side = os.path.join(BASE,"files",".sync_art_sha.json")
print("\n.sync_art_sha.json exists=", os.path.exists(side), "mtime=", datetime.datetime.fromtimestamp(os.path.getmtime(side)) if os.path.exists(side) else None)
# any backup manifests?
print("\n=== files in BASE with 'manifest' in name ===")
for n in os.listdir(BASE):
    if "manifest" in n.lower():
        p=os.path.join(BASE,n)
        print("  ", n, datetime.datetime.fromtimestamp(os.path.getmtime(p)))
