commit | c5d967b3f61de11cd0c90c38e9888f43251bd7af | [log] [tgz] |
---|---|---|
author | Nicola Murino <nicola.murino@gmail.com> | Thu Sep 12 08:17:32 2019 +0200 |
committer | Nicola Murino <nicola.murino@gmail.com> | Thu Sep 12 08:17:32 2019 +0200 |
tree | c368ece75ea23e1f7f9f4b85c5288cda4f819b6f | |
parent | 43a60a90f4c04c4af20e86b9f3be04fa3f06a9e8 [diff] |
notify errors to readerAt and writerAt Add an optional interface that readerAt and writerAt can implement to be notified about the error causing Serve() to exit with the request still open. Implement the TransferError interface in request-example. This way we can run the request server example in debug mode, for example: cd examples/request-server go run -tags debug main.go simulate a connection error killing an sftp client while uploading/downloading and see the debug log that shows that the error is correctly notifyed Fixes #306
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.