document the weirdness of the reversal of arguments to SSH_FXP_SYMLINK
2 files changed
tree: a54a047d5bd44522d515a380d5601aa6822efbf5
  1. .github/
  2. examples/
  3. internal/
  4. server_standalone/
  5. .gitignore
  6. allocator.go
  7. allocator_test.go
  8. attrs.go
  9. attrs_stubs.go
  10. attrs_test.go
  11. attrs_unix.go
  12. client.go
  13. client_integration_darwin_test.go
  14. client_integration_linux_test.go
  15. client_integration_test.go
  16. client_test.go
  17. conn.go
  18. CONTRIBUTORS
  19. debug.go
  20. example_test.go
  21. fuzz.go
  22. go.mod
  23. go.sum
  24. LICENSE
  25. ls_formatting.go
  26. ls_formatting_test.go
  27. ls_plan9.go
  28. ls_stub.go
  29. ls_unix.go
  30. Makefile
  31. match.go
  32. packet-manager.go
  33. packet-manager_test.go
  34. packet-typing.go
  35. packet.go
  36. packet_test.go
  37. pool.go
  38. README.md
  39. release.go
  40. request-attrs.go
  41. request-attrs_test.go
  42. request-errors.go
  43. request-example.go
  44. request-interfaces.go
  45. request-plan9.go
  46. request-readme.md
  47. request-server.go
  48. request-server_test.go
  49. request-unix.go
  50. request.go
  51. request_test.go
  52. request_windows.go
  53. server.go
  54. server_integration_test.go
  55. server_statvfs_darwin.go
  56. server_statvfs_impl.go
  57. server_statvfs_linux.go
  58. server_statvfs_plan9.go
  59. server_statvfs_stubs.go
  60. server_test.go
  61. sftp.go
  62. sftp_test.go
  63. stat_plan9.go
  64. stat_posix.go
  65. syscall_fixed.go
  66. syscall_good.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.

CI Status Go Reference

usage and examples

See https://pkg.go.dev/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.