commit | 1bc3ea14d16cf347183690af0c07707fc5c3bbb2 | [log] [tgz] |
---|---|---|
author | John Eikenberry <jae@zhar.net> | Thu Jan 02 14:33:58 2020 -0800 |
committer | John Eikenberry <jae@zhar.net> | Sun Jan 05 14:23:49 2020 -0800 |
tree | 57b3b50848a2cc1a1bb66929b9eb180f976bbd2f | |
parent | 3c6b3a4ff1f28e790c8df9f74665446de2acf89f [diff] |
fix issue with file put resume/append Fixes issue with append uploads. Was opening the file with O_APPEND, but it uses WriteAt() to write the data which doesn't work with a file opened in append mode. Removing the append flag fixes the issue as the client is sending the offsets anyways. Also added a note to the Request server's FileWriter interface on handling append flags.
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.