commit | d02a2715ba36c6dd07ac3ee39b93a327087bb288 | [log] [tgz] |
---|---|---|
author | John Eikenberry <jae@zhar.net> | Mon Jul 10 16:43:58 2017 -0700 |
committer | John Eikenberry <jae@zhar.net> | Mon Jul 10 16:43:58 2017 -0700 |
tree | 1894c2a927ff75ce5375abcdde7024f459089342 | |
parent | e97b9a47e1814100cb55a58e85a4fe610a0c3982 [diff] |
Fixes #184; request server file list batching The request server needs to support batching of file list requests. To address this the methods LsSave(string) and LsNext()string are added to the Request object. They should work to store a token to keep your place. The Handler should now return an EOF when the end of the directory list is reached. If it doesn't but returns an empty list, the wrapper will send the EOF for you. The old behaviour of just returning 1 batch and sending the EOF is preserved if you don't set the token (you don't use LsSave). It will return the 1 list and EOF on the next underlying readdir call. This is to preserve backwards compatibility and it not the recommended way to handle file lists.
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.