pkg / sftp

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

Add ability for server to receive file permissions for Open and Mkdir requests #546

Open capnspacehook opened 1 year ago

capnspacehook commented 1 year ago

With this change, SFTP clients that support sending file attributes in SFTP open and mkdir requests can now specify the permissions of files and directories when they are created. To avoid breaking backwards compatibility and to keep this PR as small as possible, the SFTP client is not changed so support this.