From 195456df449898775ec32e172dba2b9b1b92d2db Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 20 Aug 2023 17:16:56 +0800 Subject: [PATCH] fix #196 --- app/plugins/dirmonitor/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/plugins/dirmonitor/__init__.py b/app/plugins/dirmonitor/__init__.py index 52741707..5ee5bad8 100644 --- a/app/plugins/dirmonitor/__init__.py +++ b/app/plugins/dirmonitor/__init__.py @@ -80,7 +80,7 @@ class DirMonitor(_PluginBase): _monitor_dirs = "" _exclude_keywords = "" # 存储源目录与目的目录关系 - _dirconf: Dict[str, str] = {} + _dirconf: Dict[str, Path] = {} def init_plugin(self, config: dict = None): self.transferhis = TransferHistoryOper() @@ -116,7 +116,7 @@ class DirMonitor(_PluginBase): paths = mon_path.split(":") if len(paths) > 1: mon_path = paths[0] - self._dirconf[mon_path] = paths[1] + self._dirconf[mon_path] = Path(paths[1]) # 检查目录是不是媒体库目录的子目录 try: