Go to file
Dave Cheney d4d73b4a58 Added better walk tests 2013-11-08 21:24:50 +11:00
examples/gsftp Added more example and help text 2013-11-06 19:48:37 +11:00
CONTRIBUTORS added LICENCE and CONTRIBUTORS 2013-11-05 15:32:22 +11:00
LICENCE added LICENCE and CONTRIBUTORS 2013-11-05 15:32:22 +11:00
README.md - Fix a typo seralised -> serialized 2013-11-06 11:02:52 +02:00
attrs.go made all constants private 2013-11-06 19:12:25 +11:00
attrs_test.go made all constants private 2013-11-06 19:12:25 +11:00
client.go Added better walk tests 2013-11-08 21:24:50 +11:00
client_integration_test.go Added better walk tests 2013-11-08 21:24:50 +11:00
client_test.go Assert that *Client is a fs.FileSystem 2013-11-07 17:43:06 +11:00
example_test.go move example to top level 2013-11-06 19:54:00 +11:00
packet.go Fixed attr walking, readdir now works! 2013-11-05 22:11:34 +11:00
packet_test.go made all constants private 2013-11-06 19:10:28 +11:00
sftp.go made all constants private 2013-11-06 19:10:28 +11:00

README.md

sftp

The sftp package provides support for file system operations on remote ssh servers using the SFTP subsystem.

Build Status

usage and examples

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.

roadmap

  • Currently all traffic with the server is serialized, this can be improved by allowing overlapping requests/responses.
  • There is way too much duplication in the Client methods. If there was an unmarshal(interface{}) method this would reduce a heap of the duplication.
  • Implement integration tests by talking directly to a real opensftp-server process. This shouldn't be too difficult to implement with a small refactoring to the sftp.NewClient method. These tests should be gated on an -sftp.integration test flag. in progress

contributing

Features, Issues, and Pull Requests are always welcome.