pkg / sftp

SFTP support for the go.crypto/ssh package
BSD 2-Clause "Simplified" License
1.52k stars 380 forks source link

Example needs to use client.Close #362

Closed puellanivis closed 4 years ago

puellanivis commented 4 years ago

When changing the example code to use client instead of shadowing the sftp package with the client variable, it was missed that we need to call client.Close() instead of sftp.Close()

puellanivis commented 4 years ago

Would prefer to merge this tomorrow, so that we can release the next version with the optional allocator.

puellanivis commented 4 years ago

Defering to https://github.com/pkg/sftp/pull/356 from other author who contributed it before me.