python sftp传输文件总是报文件不存在,Paramiko put方法将抛出“ [[Errno 2]文件未找到””。 SFTP服务器是否触发了上传后自动移动文件...

使用Paramiko进行SFTP文件传输时遇到[Errno 2] File not found错误,原因是SFTP服务器在文件上传后立即移动文件。尽管文件实际上传成功,但Paramiko默认验证上传后的文件大小,导致检查失败。为解决此问题,可以设置`confirm=False`来避免上传确认,例如:sftp_client.put(localpath, remotepath, confirm=False)。" 87023848,7732906,正排索引与倒排索引解析,"['搜索引擎', '信息检索', '索引结构', '数据压缩', '数据库']
摘要由CSDN通过智能技术生成

I'm calling the Paramiko sftp_client.put(locapath,remotepath) method

This is throwing the [Errno 2] File not found error below.

01/07/2020 01:12:03 PM - ERROR - [Errno 2] File not found

Traceback (most recent call last):

File "file_transfer\TransferFiles.py", line 123, in main

File "paramiko\sftp_client.py", line 727, in put

File "paramiko\sftp_client.py", line 689, in putfo

File "paramiko\sftp_client.py", line 460, in stat

File "paramiko\sftp_client.py", line 780, in _request

File "paramiko\sftp_client.py", line 832, in _read_response

File "paramiko\sftp_client.py", line 861, in _convert_status

Having tried many of the other recommend fixes I found that the error is due to the server having an automatic trigger to move the file immediately to anothe

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值