From 1b09bb8d22b0e1455d1e0f655d8dedb1111644e6 Mon Sep 17 00:00:00 2001 From: Allen Date: Fri, 31 May 2024 15:00:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E4=B8=BB=E5=8A=A8=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=B8=8B=E8=BD=BD=E7=9B=AE=E5=BD=95=E7=9A=84=E9=80=BB?= =?UTF-8?q?=E8=BE=91=EF=BC=8C=E8=A7=A3=E8=80=A6=E4=B8=8B=E8=BD=BD=E5=99=A8?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E5=9C=A8=E5=AE=B9=E5=99=A8=E7=8E=AF?= =?UTF-8?q?=E5=A2=83=E5=BD=93=E4=B8=8B=E8=BD=BD=E5=99=A8=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=B8=8EMP=E6=98=A0=E5=B0=84=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=97=B6=E5=AF=BC=E8=87=B4=E7=9A=84=E7=9B=AE=E5=BD=95=E6=9D=83?= =?UTF-8?q?=E9=99=90=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helper/directory.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helper/directory.py b/app/helper/directory.py index 066efd29..cc291731 100644 --- a/app/helper/directory.py +++ b/app/helper/directory.py @@ -59,8 +59,9 @@ class DirectoryHelper: if to_path and download_path != to_path: continue # 不存在目录则创建 - if not download_path.exists(): - download_path.mkdir(parents=True, exist_ok=True) + # 注释说明:MP应该和下载器解耦,下载器的目录应该由下载器自己维护,否则在容器环境当下载器的目录映射与MP中不一致时会导致异常 + #if not download_path.exists(): + # download_path.mkdir(parents=True, exist_ok=True) # 目录类型为全部的,符合条件 if not download_dir.media_type: return download_dir