import os
import shutil

downloads = r"C:\Users\Abhiram P M\Downloads"
dst_pdf_dir = r"d:\iss\Franciscan Society\assets\pdf"
os.makedirs(dst_pdf_dir, exist_ok=True)

pdf_name = "Jnanadeepa May- Aug 2025-5-9.pdf"
src_pdf = os.path.join(downloads, pdf_name)

if os.path.exists(src_pdf):
    dst_pdf = os.path.join(dst_pdf_dir, "jnanadeepa-may-aug-2025.pdf")
    shutil.copy2(src_pdf, dst_pdf)
    print(f"Copied {src_pdf} to {dst_pdf}")
else:
    print(f"PDF not found at {src_pdf}")

# List other PDFs in Downloads
for f in os.listdir(downloads):
    if f.lower().endswith('.pdf'):
        print(f"Found PDF in Downloads: {f}")
