Resume file transfer for a half way failed file transfer

半腔热情 提交于 2019-12-08 05:09:28

Just reconnect and start an upload again with RESUME flag:

channelSftp.put(src, dst, ChannelSftp.RESUME);

The RESUME flag will make JSch query size of a partial remote file and restart the transfer from there. If the file is already uploaded completely, it transfers nothing.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!