周玉环 d906a41c2e first commit 2 ngày trước cách đây
..
internal d906a41c2e first commit 2 ngày trước cách đây
.gitignore d906a41c2e first commit 2 ngày trước cách đây
CONTRIBUTORS d906a41c2e first commit 2 ngày trước cách đây
LICENSE d906a41c2e first commit 2 ngày trước cách đây
Makefile d906a41c2e first commit 2 ngày trước cách đây
README.md d906a41c2e first commit 2 ngày trước cách đây
allocator.go d906a41c2e first commit 2 ngày trước cách đây
attrs.go d906a41c2e first commit 2 ngày trước cách đây
attrs_stubs.go d906a41c2e first commit 2 ngày trước cách đây
attrs_unix.go d906a41c2e first commit 2 ngày trước cách đây
client.go d906a41c2e first commit 2 ngày trước cách đây
conn.go d906a41c2e first commit 2 ngày trước cách đây
debug.go d906a41c2e first commit 2 ngày trước cách đây
fuzz.go d906a41c2e first commit 2 ngày trước cách đây
ls_formatting.go d906a41c2e first commit 2 ngày trước cách đây
ls_plan9.go d906a41c2e first commit 2 ngày trước cách đây
ls_stub.go d906a41c2e first commit 2 ngày trước cách đây
ls_unix.go d906a41c2e first commit 2 ngày trước cách đây
match.go d906a41c2e first commit 2 ngày trước cách đây
packet-manager.go d906a41c2e first commit 2 ngày trước cách đây
packet-typing.go d906a41c2e first commit 2 ngày trước cách đây
packet.go d906a41c2e first commit 2 ngày trước cách đây
pool.go d906a41c2e first commit 2 ngày trước cách đây
release.go d906a41c2e first commit 2 ngày trước cách đây
request-attrs.go d906a41c2e first commit 2 ngày trước cách đây
request-errors.go d906a41c2e first commit 2 ngày trước cách đây
request-example.go d906a41c2e first commit 2 ngày trước cách đây
request-interfaces.go d906a41c2e first commit 2 ngày trước cách đây
request-plan9.go d906a41c2e first commit 2 ngày trước cách đây
request-readme.md d906a41c2e first commit 2 ngày trước cách đây
request-server.go d906a41c2e first commit 2 ngày trước cách đây
request-unix.go d906a41c2e first commit 2 ngày trước cách đây
request.go d906a41c2e first commit 2 ngày trước cách đây
request_windows.go d906a41c2e first commit 2 ngày trước cách đây
server.go d906a41c2e first commit 2 ngày trước cách đây
server_plan9.go d906a41c2e first commit 2 ngày trước cách đây
server_statvfs_darwin.go d906a41c2e first commit 2 ngày trước cách đây
server_statvfs_impl.go d906a41c2e first commit 2 ngày trước cách đây
server_statvfs_linux.go d906a41c2e first commit 2 ngày trước cách đây
server_statvfs_plan9.go d906a41c2e first commit 2 ngày trước cách đây
server_statvfs_stubs.go d906a41c2e first commit 2 ngày trước cách đây
server_unix.go d906a41c2e first commit 2 ngày trước cách đây
server_windows.go d906a41c2e first commit 2 ngày trước cách đây
sftp.go d906a41c2e first commit 2 ngày trước cách đây
stat_plan9.go d906a41c2e first commit 2 ngày trước cách đây
stat_posix.go d906a41c2e first commit 2 ngày trước cách đây
syscall_fixed.go d906a41c2e first commit 2 ngày trước cách đây
syscall_good.go d906a41c2e first commit 2 ngày trước cách đây

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.