import os, shutil, glob
imgs = glob.glob(r"D:\wxpic\*.jpg") + glob.glob(r"D:\wxpic\*.png")
img = max(imgs, key=os.path.getmtime) if imgs else None
print("src:", img)
dst = r"C:\Users\86156\AppData\Local\Temp\openclaw\uploads\cover.jpg"
os.makedirs(os.path.dirname(dst), exist_ok=True)
shutil.copy2(img, dst)
print("dst:", dst, "exists:", os.path.exists(dst))
