fix CloudLinkMonitor bug

This commit is contained in:
thsrite
2024-02-27 17:07:22 +08:00
parent 30e6ac78c1
commit 457b643acc
4 changed files with 6 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ class CloudLinkMonitor(_PluginBase):
# 插件图标
plugin_icon = "Linkease_A.png"
# 插件版本
plugin_version = "1.1"
plugin_version = "1.2"
# 插件作者
plugin_author = "thsrite"
# 作者主页
@@ -433,9 +433,9 @@ class CloudLinkMonitor(_PluginBase):
# 判断文件大小
if self._size and float(self._size) > 0 and file_path.stat().st_size < float(self._size) * 1024:
logger.info(f"{event_path} 文件大小小于最小文件大小,复制...")
_transfer_type = self._transfer_type
else:
_transfer_type = "copy"
else:
_transfer_type = self._transfer_type
# 查询转移目的目录
target: Path = self._dirconf.get(mon_path)