Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SftpFileStream: Improve SetLength(long) compatibility with FileStream #272

Merged
merged 4 commits into from
Aug 14, 2017

Conversation

drieseng
Copy link
Member

Improve compatibility of SftpFileStream.SetLength(long value) with corresponding method on FileStream:

  • Flush buffers between changing length of stream.
  • Move the current position to the last byte of the stream if the current position is greater than the new length.

* Flush any buffers before epand or shrink the stream.
* If the specified value is less than the current length of the stream, the current position is moved to the last byte of the stream.
@drieseng drieseng added this to the 2016-1.0-beta2 milestone Aug 13, 2017
@drieseng drieseng self-assigned this Aug 13, 2017
@drieseng drieseng merged commit 68c1e59 into develop Aug 14, 2017
@drieseng drieseng deleted the sftpclient-setlength branch August 14, 2017 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant