commit | c732bf9952f31833088221d304961351b17071cd | [log] [tgz] |
---|---|---|
author | John Eikenberry <jae@zhar.net> | Sun Oct 06 16:49:46 2019 -0700 |
committer | John Eikenberry <jae@zhar.net> | Sun Oct 13 19:18:35 2019 -0700 |
tree | 829453357883108c326f90fde47ca837e3ba19da | |
parent | 80676379624b3911398743032a5fc40b6bc9d627 [diff] |
add method to get fxerr value for StatusError code Need to get StatusError.Code (uint32) converted to fxerr type so you can compare it to public (exported) ErrSSHFx[..] error types. This adds a new method, FxCode(), to the StatusError objects to handle this case. Did this vs trying to change types of existing fields to not break backwards compatibility.
The sftp
package provides support for file system operations on remote ssh servers using the SFTP subsystem. It also implements an SFTP server for serving files from the filesystem.
See godoc.org/github.com/pkg/sftp for examples and usage.
The basic operation of the package mirrors the facilities of the os package.
The Walker interface for directory traversal is heavily inspired by Keith Rarick's fs package.
We welcome pull requests, bug fixes and issue reports.
Before proposing a large change, first please discuss your change by raising an issue.
For API/code bugs, please include a small, self contained code example to reproduce the issue. For pull requests, remember test coverage.
We try to handle issues and pull requests with a 0 open philosophy. That means we will try to address the submission as soon as possible and will work toward a resolution. If progress can no longer be made (eg. unreproducible bug) or stops (eg. unresponsive submitter), we will close the bug.
Thanks.