Go to file
Dave Cheney 4c7551ad7e Refactor all the calls to sendPacket(statusFromError(...)) to a sendError helper (#114)
* statusFromError now takes a type with an id() uint32 method

* Introduce sendError

Refactor all the calls to sendPacket(statusFromError(...)) to a
sendError helper.
2016-06-14 21:11:15 +10:00
examples make example server respect readOnly flag (#108) 2016-05-31 11:05:26 +10:00
server_standalone add serverside StatVFS function, implemented for darwin and linux (#89) 2016-06-13 14:45:13 +10:00
.gitignore Created working example SFTP server 2015-11-07 19:21:42 +00:00
.travis.yml enable race detector (#104) 2016-05-29 17:51:21 +10:00
CONTRIBUTORS Update CONTRIBUTORS 2014-04-18 12:31:59 +03:00
LICENSE Rename LICENCE to LICENSE 2014-10-27 21:31:41 +00:00
README.md remove several roadmap items, i think they are done 2016-06-13 11:59:45 +10:00
attrs.go *: golint: add and fix up comments on exported types 2016-01-07 15:16:34 -05:00
attrs_stubs.go add windows as a build target to _stubs.go files 2015-09-19 19:16:50 -07:00
attrs_test.go *: golint (part 1) 2016-01-07 12:10:24 -05:00
attrs_unix.go *: golint (part 1) 2016-01-07 12:10:24 -05:00
client.go Small cleanups 2016-06-14 18:05:33 +10:00
client_integration_darwin_test.go Add -testserver permutation 2016-01-02 10:28:56 +01:00
client_integration_linux_test.go adding debugging information for test failures 2016-05-29 17:44:37 +10:00
client_integration_test.go Introduce netpipe (#105) 2016-05-29 17:22:48 +10:00
client_test.go Make SSH_FXP_STATUS error message optional (#109) 2016-06-14 12:24:38 +10:00
debug.go added debug option, build/test with -tags debug to activate 2014-09-28 12:32:34 +10:00
example_test.go Address review comments; about to change decodePacket() 2015-09-06 23:55:15 -07:00
other_test.go Handle osx returning EPERM not ENOTDIR 2015-12-22 13:34:21 +09:00
packet.go Small cleanups 2016-06-14 18:05:33 +10:00
packet_test.go packet, server: use a single read-only check 2016-01-11 11:50:10 -05:00
release.go added debug option, build/test with -tags debug to activate 2014-09-28 12:32:34 +10:00
server.go Refactor all the calls to sendPacket(statusFromError(...)) to a sendError helper (#114) 2016-06-14 21:11:15 +10:00
server_integration_test.go General server cleanups (#103) 2016-05-29 16:32:05 +10:00
server_statvfs_darwin.go add serverside StatVFS function, implemented for darwin and linux (#89) 2016-06-13 14:45:13 +10:00
server_statvfs_impl.go Refactor all the calls to sendPacket(statusFromError(...)) to a sendError helper (#114) 2016-06-14 21:11:15 +10:00
server_statvfs_linux.go add serverside StatVFS function, implemented for darwin and linux (#89) 2016-06-13 14:45:13 +10:00
server_statvfs_stubs.go add serverside StatVFS function, implemented for darwin and linux (#89) 2016-06-13 14:45:13 +10:00
server_stubs.go add windows as a build target to _stubs.go files 2015-09-19 19:16:50 -07:00
server_test.go client: use a waitgroup rather than a close channel (#112) 2016-06-13 22:40:12 +10:00
server_unix.go add more tests; bug setting S_IFREG caused openssh sftp to refuse to get the file 2015-09-08 17:03:18 -07:00
sftp.go Use pkg/errors for error handling (#101) 2016-05-19 15:16:48 +10:00

README.md

sftp

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

UNIX Build Status GoDoc

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

  • 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.

contributing

We welcome pull requests, bug fixes and issue reports.

Before proposing a large change, first please discuss your change by raising an issue.