pkg / sftp

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

Translate EACCES to PERMISSION_DENIED. #478

Closed tommie closed 3 years ago

tommie commented 3 years ago

This is returned by (POSIX) open(2) if there is a permission issue, e.g. opening a read-only file for writing.

puellanivis commented 3 years ago

Tested against all GOOS for GOARCH=amd64 GOARCH=386 as well as js/wasm and aix/ppc64 all either pass tests or compile. 👍