Skip to content

Conversation

@Rob-Hague
Copy link
Collaborator

  • SftpClient.ReadAllBytes does one call to SftpFileStream.Read. This is fine because SftpFileStream.Read currently fills the caller's buffer, but it may not always be the case, so for correctness we call ReadExactly (polyfilled on lower targets).

  • IEnumerable<string> ReadLines currently calls string[] ReadAllLines. We invert this relationship so that ReadLines enumerates lazily. This is fine by contract but may cause behavioural breaks. Will call it out in release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants