pkg / sftp

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

[bug] PosixRename and Hardlink don’t convert remote paths to local paths #492

Closed puellanivis closed 2 years ago

puellanivis commented 2 years ago

From Issue #491 it was noticed that the extended packet for PosixRename is not converting remote paths to local paths. During examination looking for the same issue, Hardlink was found to have the same issue. StatVFS is unnecessary to check, as Windows does not support it.

Included in addition, fixing up the integration test both client and server so that they function from within WSL when GOOS=windows. For anyone developing through WSL, this means they can quickly test the Windows implementation, as well as the Linux one from the same command-line.