From 77a7b079e4fd53e5d4b2f06fcddf4a0e98f94b77 Mon Sep 17 00:00:00 2001 From: thsrite Date: Thu, 18 Apr 2024 11:47:10 +0800 Subject: [PATCH] fix bug --- plugins/filesoftlink/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/filesoftlink/__init__.py b/plugins/filesoftlink/__init__.py index 417ee58..0464def 100644 --- a/plugins/filesoftlink/__init__.py +++ b/plugins/filesoftlink/__init__.py @@ -329,7 +329,7 @@ class FileSoftLink(_PluginBase): # 媒体文件软连接 if Path(target_file).suffix in settings.RMT_MEDIAEXT: - retcode, retmsg = SystemUtils.softlink(file_path, target_file) + retcode, retmsg = SystemUtils.softlink(file_path, Path(target_file)) logger.info(f"创建媒体文件软连接 {str(file_path)} 到 {target_file} {retcode} {retmsg}") else: if self._copy_files: