fix transfer

This commit is contained in:
jxxghp
2023-06-09 12:43:44 +08:00
parent 5f8451386d
commit c89e268b6a

View File

@ -54,6 +54,10 @@ class FileTransferModule(_ModuleBase):
:param rmt_mode: RmtMode转移方式
"""
with lock:
# 创建父目录
target_file.parent.mkdir(parents=True, exist_ok=True)
# 转移
if rmt_mode == 'link':
# 硬链接
retcode, retmsg = SystemUtils.link(file_item, target_file)