I am trying to SFTP few files to server using JSCH library. There is a scenario when the connection breaks in between and only partial file is transferred to server. Is there any way out that the partial file is not transferred to server when such an exception occurs or the partial file transferred is deleted. Please reply ASAP.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to SFTP few files to server using JSCH library. There is a scenario when the connection breaks in between and only partial file is transferred to server. Is there any way out that the partial file is not transferred to server when such an exception occurs or the partial file transferred is deleted. Please reply ASAP.