Go to file
Donavan Pantke cf08e75f1f Refactor to make vars and receivers consistent with types used. 2014-06-23 06:55:00 -04:00
examples/gsftp Change log.Fatal to log.Fatalf 2014-05-13 23:09:14 -04:00
CONTRIBUTORS Update CONTRIBUTORS 2014-04-18 12:31:59 +03: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 Refactor to make vars and receivers consistent with types used. 2014-06-23 06:55:00 -04:00
attrs_test.go Refactored attribute test to deal with new types. 2014-06-23 02:03:55 -04:00
client.go Refactor stat functions to look more like Go's original. Also allows for access to fields we can access from SFTP but do not conform to os.FileInfo. 2014-06-22 23:11:28 -04:00
client_integration_test.go Consistent puncutation, names and constants 2014-06-13 10:22:04 +02:00
client_test.go Added OpenFile support 2013-11-14 15:32:21 +11:00
example_test.go Fixed incompatibility with latest code.google.com/p/go.crypto/ssh 2014-04-10 15:37:10 +03:00
packet.go Fixed an error in marshalUint64() that resulted in incorrect marshalling of values >= 2^24 2013-12-11 00:14:59 +01:00
packet_test.go Fix test 2014-05-25 14:27:01 +10:00
sftp.go Implement io.Seeker for *sftp.File 2014-06-11 21:17:53 +02: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.