From cd5d62a297b425ec80c9506ff73f5cb76865ade2 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 26 Jan 2026 14:44:52 -0800 Subject: [PATCH] use path directly --- src/documents/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/tasks.py b/src/documents/tasks.py index 2dd767667..482a92013 100644 --- a/src/documents/tasks.py +++ b/src/documents/tasks.py @@ -686,7 +686,7 @@ def build_share_link_bundle(bundle_id: int): final_path = (output_dir / f"{bundle.slug}.zip").resolve() if final_path.exists(): final_path.unlink() - shutil.move(str(temp_zip_path), final_path) + shutil.move(temp_zip_path, final_path) try: bundle.file_path = str(final_path.relative_to(settings.MEDIA_ROOT))