From 26f4ea3f285eccf6561de2790316d826175e4a66 Mon Sep 17 00:00:00 2001 From: dinglz <97778145+dingdinglz@users.noreply.github.com> Date: Sat, 11 Oct 2025 15:13:45 +0800 Subject: [PATCH] fix: delete the source file --- tools/pdf_downloader.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/pdf_downloader.py b/tools/pdf_downloader.py index ce55853c..72006431 100644 --- a/tools/pdf_downloader.py +++ b/tools/pdf_downloader.py @@ -851,8 +851,9 @@ async def move_local_file(source_path: str, destination: str) -> Dict[str, Any]: if parent_dir: os.makedirs(parent_dir, exist_ok=True) - # 执行移动操作 - shutil.move(source_path, destination) + # 执行复制操作 + shutil.copy2(source_path, destination) + os.chmod(destination, 0o777) # 计算操作时间 duration = (datetime.now() - start_time).total_seconds()