diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index 8a4b3445..0b9bbcf1 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -1,3 +1,4 @@ +import platform import re import shutil import threading @@ -122,7 +123,15 @@ class DirMonitor(_PluginBase): continue # 存储目的目录 - paths = mon_path.split(":") + system = platform.system() + if system == "Windows": + if mon_path.count(":") > 1: + paths = [mon_path.split(":")[0] + ":" + mon_path.split(":")[1], + mon_path.split(":")[2] + ":" + mon_path.split(":")[3]] + else: + paths = [mon_path] + else: + paths = mon_path.split(":") target_path = None if len(paths) > 1: mon_path = paths[0]