You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since 2016.1.0-beta1, when SftpFileStream.Write() data corruption bug fixed, new bug become.
SftpFileStream.Seek() does not move .Write position.
Test example:
var buf = Encoding.UTF8.GetBytes("123456");
var ws = sftp.OpenWrite(path);
ws.Write(buf, 0, 3);
ws.Close();
ws = sftp.OpenWrite(path);
ws.Seek(3, SeekOrigin.Begin);
ws.Write(buf, 3, 3);
ws.Close();
var text = sftp.ReadAllText(path, Encoding.UTF8);
Console.WriteLine($"Written '{Encoding.UTF8.GetString(buf)}', read '{text}'");
Since 2016.1.0-beta1, when SftpFileStream.Write() data corruption bug fixed, new bug become.
SftpFileStream.Seek() does not move .Write position.
Test example:
produce output
but correct
Small change in SftpFileStream.cs fix the problem, but need to validate solution.
SftpFileStream-WriteSeek-fix.txt
The text was updated successfully, but these errors were encountered: