Go to file
Cassondra Foesch 2cbfd45ef2 bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
.github/workflows CI: add Go 1.16 and remove 1.14 2021-02-22 16:33:20 +01:00
examples sftp: update tests to finish and not panic on windows 2019-01-18 16:29:07 -08:00
internal/encoding/ssh/filexfer bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_standalone server_standalone: handle readonly properly 2017-03-15 12:45:09 -07:00
.gitignore split benchmark and benchmark_w_memprofile, include memprofile files to gitignore 2021-03-17 20:17:15 +00:00
CONTRIBUTORS Adding myself as I'm helping out 2017-01-06 17:20:11 -08:00
LICENSE Rename LICENCE to LICENSE 2014-10-27 21:31:41 +00:00
Makefile split benchmark and benchmark_w_memprofile, include memprofile files to gitignore 2021-03-17 20:17:15 +00:00
README.md update documentation links 2021-01-20 13:52:30 +01:00
allocator.go the allocator can now be enabled per request 2020-03-18 09:36:07 +01:00
allocator_test.go the allocator can now be enabled per request 2020-03-18 09:36:07 +01:00
attrs.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
attrs_stubs.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
attrs_unix.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
client.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
client_integration_darwin_test.go fix lint issues 2019-08-30 17:04:37 +02:00
client_integration_linux_test.go New method Client.Extensions to list server extensions 2020-10-23 11:16:44 +02:00
client_integration_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
client_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
conn.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
debug.go added debug option, build/test with -tags debug to activate 2014-09-28 12:32:34 +10:00
example_test.go Improve benchmarks and errors 2021-03-17 11:03:51 +00:00
fuzz.go really fix the fuzzer 2021-03-23 21:47:04 +01:00
go.mod update deps and raise go version to 1.15 2021-04-24 10:34:37 +02:00
go.sum update deps and raise go version to 1.15 2021-04-24 10:34:37 +02:00
match.go Fix Glob handling of backslashes 2021-03-15 18:11:02 +01:00
packet-manager.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
packet-manager_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
packet-typing.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
packet.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
packet_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
pool.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
release.go added debug option, build/test with -tags debug to activate 2014-09-28 12:32:34 +10:00
request-attrs.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-attrs_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-errors.go Lowercase error messages 2021-03-20 20:35:04 +01:00
request-example.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-interfaces.go fix as per review 2021-04-27 18:06:39 +02:00
request-plan9.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-readme.md update Request structure docs for path and flag changes 2018-01-04 13:30:43 -08:00
request-server.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-server_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request-unix.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
request_test.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
request_windows.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_integration_test.go server integration test: add Windows sftp server path 2021-04-24 10:27:59 +02:00
server_plan9.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_statvfs_darwin.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_statvfs_impl.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
server_statvfs_linux.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_statvfs_plan9.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
server_statvfs_stubs.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
server_stubs.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_test.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
server_unix.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
sftp.go Merge pull request #422 from greatroar/cleanup 2021-03-21 13:12:55 +00:00
sftp_test.go pointer receivers and statusFromError(uint32, error) 2021-02-22 12:11:42 +00:00
stat_plan9.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
stat_posix.go bulk refactor; failed to commit early and often 2021-04-29 09:11:55 +00:00
syscall_good.go remove now unnecessary files and conglomerate on new sshfx standard 2021-04-29 09:11:55 +00:00

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.