diff --git a/mirror/html/renderer.py b/mirror/html/renderer.py index d326903..8f2c7ea 100644 --- a/mirror/html/renderer.py +++ b/mirror/html/renderer.py @@ -63,13 +63,13 @@ def _copy_static(self) -> None: if src.is_dir(): if dst.exists(): shutil.rmtree(dst) - shutil.copytree(src, dst) + shutil.copytree(src, dst, copy_function=shutil.copy) # Copy root-level static files for name in ("site.webmanifest", "browserconfig.xml"): src = static_src / name if src.is_file(): - shutil.copy2(src, out / name) + shutil.copy(src, out / name) def _render_home(self) -> None: print("Rendering home page...")