fix LinkMonitor

This commit is contained in:
jxxghp
2024-03-05 20:30:24 +08:00
parent 28277174ae
commit cee97f1188
2 changed files with 4 additions and 4 deletions

View File

@@ -354,7 +354,7 @@
"LinkMonitor": {
"name": "实时硬链接",
"description": "监控目录文件变化,实时硬链接。",
"version": "1.3",
"version": "1.4",
"icon": "Linkace_C.png",
"author": "jxxghp",
"level": 1

View File

@@ -51,7 +51,7 @@ class LinkMonitor(_PluginBase):
# 插件图标
plugin_icon = "Linkace_C.png"
# 插件版本
plugin_version = "1.3"
plugin_version = "1.4"
# 插件作者
plugin_author = "jxxghp"
# 作者主页
@@ -304,9 +304,9 @@ class LinkMonitor(_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 = "link"
else:
_transfer_type = "copy"
else:
_transfer_type = "link"
# 查询转移目的目录
target: Path = self._dirconf.get(mon_path)