import os import shutil from pathlib import Path src = Path(r"c:\laragon\www\phpnuxbill\otantikPay\src") dst = Path(r"c:\laragon\www\light-otantik-nux\deploy\nux-custom\system\paymentgateway\mesomb-sdk") skip = {"app"} dst.mkdir(parents=True, exist_ok=True) for item in src.iterdir(): if item.name in skip: continue target = dst / item.name if item.is_dir(): if target.exists(): shutil.rmtree(target) shutil.copytree(item, target) else: shutil.copy2(item, target) print("copied sdk to", dst) print("files", sum(1 for _ in dst.rglob("*")))