Skip to content

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