pkg / sftp

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

Rework client to prevent after-Close usage, and support perm at Open #574

Closed puellanivis closed 9 months ago

puellanivis commented 10 months ago

Two things in this:

puellanivis commented 9 months ago

Alright, I feel this is pretty solid now. I’ll be merging it shortly.

drakkan commented 9 months ago

Alright, I feel this is pretty solid now. I’ll be merging it shortly.

I plan to do some testing this weekend, but I'm sure I won't find anything wrong. Sounds like a great job, thanks!

puellanivis commented 9 months ago

I plan to do some testing this weekend, but I'm sure I won't find anything wrong. Sounds like a great job, thanks!

I’ll hold off until Monday then. More broad testing is better than the very narrow testing that I’ve done so far.

drakkan commented 9 months ago

LGTM, since we are adding support for perm at Open for the server implementation maybe we can also add them in requestFromPacket for the request server, but we can also delay this to a future PR if required.

puellanivis commented 9 months ago

Adding support in requestFromPacket was simple enough. Just a one-liner. Adding deeper support to the MemFile implementation to act as an example would take much more work, so I’ll leave that part for a later PR… or an existing PR. :trollface:

drakkan commented 9 months ago

Adding support in requestFromPacket was simple enough. Just a one-liner. Adding deeper support to the MemFile implementation to act as an example would take much more work, so I’ll leave that part for a later PR… or an existing PR. :trollface:

Thank you!