From f4edb32886650274224d5af5f5efc09f63bd8c55 Mon Sep 17 00:00:00 2001 From: mayun110 Date: Sat, 9 Sep 2023 18:11:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20Windows=E7=9B=AE=E5=BD=95=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E4=B8=8B=E8=8E=B7=E5=8F=96=E7=9B=AE=E5=BD=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/plugins/dirmonitor/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index 0b9bbcf1..b2cde954 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -1,4 +1,3 @@ -import platform import re import shutil import threading @@ -123,8 +122,7 @@ class DirMonitor(_PluginBase): continue # 存储目的目录 - system = platform.system() - if system == "Windows": + if SystemUtils.is_windows(): if mon_path.count(":") > 1: paths = [mon_path.split(":")[0] + ":" + mon_path.split(":")[1], mon_path.split(":")[2] + ":" + mon_path.split(":")[3]]