Commit c00e1cf4 authored by 金凯强's avatar 金凯强 🎨

修改上传参数

parent 9f8abc59
......@@ -48,7 +48,7 @@ class SSHConnect():
:param target_path: 目标文件路径
"""
sftp = paramiko.SFTPClient.from_transport(self.ssh.get_transport())
sftp.put(local_path, target_path)
sftp.put(local_path, target_path, confirm=False)
def download(self, remote_path, local_path):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment