SSH.NET icon indicating copy to clipboard operation
SSH.NET copied to clipboard

SFTP download not resuming after connectivity loss

Open Rishanthakumar opened this issue 9 years ago • 3 comments

I tried downloading a file through sftp with DownloadFile method available in SftpClient class, but this is not resuming the download when the connection resumes after an interruption. Nothing is mentioned in the documentation about this. Are there any methods available to do this?

Rishanthakumar avatar May 23 '17 15:05 Rishanthakumar

This is currently not supported. Do note that DownloadFile is quite a bit faster in version 2016.1.0-beta2.

drieseng avatar Sep 17 '17 16:09 drieseng

@drieseng if I have the 100gb file.And Connection to interrupt on 50gb.Should I download again?

Maybe you have low-api for opeanRead offset position?

sergeushenecz avatar Sep 28 '17 14:09 sergeushenecz

for future readers: SftpClient.OpenRead -> SftpFileStream.Seek -> SftpFileStream.CopyTo

Rob-Hague avatar Oct 19 '26 20:10 Rob-Hague