go modules update

make client more resilient with servers that don't support full protocol
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEzPhKluB/h4GYxGUCPZqeWROpRaIFAl1jOuEACgkQPZqeWROp
RaIbpAgAgC70ELVI61lJOKVCKWF13dvE86E9drn8IezTsU4ty3P5Dhff92Z+qW8R
G3BK1AtBT8gNo2xWhPW0tVlwxAMuKnC7vQHF4Eyzc2kSAopq/OfoYa1DrOx8nide
sS4ap2EdNWWDHcUTi5ZPziDzNYafgEqGi66I9pPZsRU1oW9obTAL7S6llHgbuh57
xRVPQeDdnzj9GycmHI6yZg4FGw3dVy/DxgFL+AVmqlReqOoRHaa/32kz1eA51oBj
kWizvh0i5xUwW7kxSrovAnnMPPTwq114mU6ca9VHQ83uIYWWhYuVBgsdx708KDuG
Y4fmqEuwGCMyYPYy+/cK3d6ZmktxYQ==
=6jEz
-----END PGP SIGNATURE-----
update to use go modules
3 files changed
tree: 598edc8d8127bf19c4d442790793b8eb36b1114f
  1. .gitignore
  2. .travis.yml
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. attrs.go
  7. attrs_stubs.go
  8. attrs_test.go
  9. attrs_unix.go
  10. client.go
  11. client_integration_darwin_test.go
  12. client_integration_linux_test.go
  13. client_integration_test.go
  14. client_test.go
  15. conn.go
  16. debug.go
  17. example_test.go
  18. examples/
  19. go.mod
  20. go.sum
  21. match.go
  22. packet-manager.go
  23. packet-manager_test.go
  24. packet-typing.go
  25. packet.go
  26. packet_test.go
  27. release.go
  28. request-attrs.go
  29. request-attrs_test.go
  30. request-errors.go
  31. request-example.go
  32. request-interfaces.go
  33. request-readme.md
  34. request-server.go
  35. request-server_test.go
  36. request-unix.go
  37. request.go
  38. request_test.go
  39. request_windows.go
  40. server.go
  41. server_integration_test.go
  42. server_standalone/
  43. server_statvfs_darwin.go
  44. server_statvfs_impl.go
  45. server_statvfs_linux.go
  46. server_statvfs_stubs.go
  47. server_stubs.go
  48. server_test.go
  49. server_unix.go
  50. sftp.go
README.md

sftp

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.

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.

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.