fix #196
This commit is contained in:
parent
8a9683b389
commit
195456df44
@ -80,7 +80,7 @@ class DirMonitor(_PluginBase):
|
|||||||
_monitor_dirs = ""
|
_monitor_dirs = ""
|
||||||
_exclude_keywords = ""
|
_exclude_keywords = ""
|
||||||
# 存储源目录与目的目录关系
|
# 存储源目录与目的目录关系
|
||||||
_dirconf: Dict[str, str] = {}
|
_dirconf: Dict[str, Path] = {}
|
||||||
|
|
||||||
def init_plugin(self, config: dict = None):
|
def init_plugin(self, config: dict = None):
|
||||||
self.transferhis = TransferHistoryOper()
|
self.transferhis = TransferHistoryOper()
|
||||||
@ -116,7 +116,7 @@ class DirMonitor(_PluginBase):
|
|||||||
paths = mon_path.split(":")
|
paths = mon_path.split(":")
|
||||||
if len(paths) > 1:
|
if len(paths) > 1:
|
||||||
mon_path = paths[0]
|
mon_path = paths[0]
|
||||||
self._dirconf[mon_path] = paths[1]
|
self._dirconf[mon_path] = Path(paths[1])
|
||||||
|
|
||||||
# 检查目录是不是媒体库目录的子目录
|
# 检查目录是不是媒体库目录的子目录
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user