From dc1a41da907d0ba4c6e3e326729f5ce85bc5da4e Mon Sep 17 00:00:00 2001 From: jxxghp Date: Tue, 12 Mar 2024 13:48:37 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=87=8F=E5=B0=91=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E7=9A=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/utils/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/system.py b/app/utils/system.py index dafc3947..3d2fb500 100644 --- a/app/utils/system.py +++ b/app/utils/system.py @@ -389,6 +389,8 @@ class SystemUtils: """ 判断是否为蓝光原盘目录 """ + if not dir_path.is_dir(): + return False # 蓝光原盘目录必备的文件或文件夹 required_files = ['BDMV', 'CERTIFICATE'] # 检查目录下是否存在所需文件或文件夹