vcom/vendor/github.com/pkg/sftp
vrubelroman 1ed2d3defb SSH connection status indicators
- Add Connected bool field to vfs.Entry and RemoteMount
- Track connection status in sshState.connectedHosts
- Show status icon (connected/disconnected) in pane header when browsing remote host
- Async SSH connection test with cancel support for Add Host dialog
- Colored labels and styled help text in SSH dialogs
- Confirmation dialog when deleting manually-added SSH hosts
2026-04-29 03:11:53 +03:00
..
internal/encoding/ssh/filexfer SSH connection status indicators 2026-04-29 03:11:53 +03:00
.gitignore SSH connection status indicators 2026-04-29 03:11:53 +03:00
allocator.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
attrs.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
attrs_stubs.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
attrs_unix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
client.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
conn.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
CONTRIBUTORS SSH connection status indicators 2026-04-29 03:11:53 +03:00
debug.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
errno_plan9.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
errno_posix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
fuzz.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
LICENSE SSH connection status indicators 2026-04-29 03:11:53 +03:00
ls_formatting.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
ls_plan9.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
ls_stub.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
ls_unix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
Makefile SSH connection status indicators 2026-04-29 03:11:53 +03:00
match.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
packet-manager.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
packet-typing.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
packet.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
pool.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
README.md SSH connection status indicators 2026-04-29 03:11:53 +03:00
release.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-attrs.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-errors.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-example.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-interfaces.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-plan9.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-readme.md SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-server.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request-unix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
request_windows.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
SECURITY.md SSH connection status indicators 2026-04-29 03:11:53 +03:00
server.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_plan9.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_posix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_statvfs_darwin.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_statvfs_impl.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_statvfs_linux.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_statvfs_plan9.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_statvfs_stubs.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_unix.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
server_windows.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
sftp.go SSH connection status indicators 2026-04-29 03:11:53 +03:00
stat.go SSH connection status indicators 2026-04-29 03:11:53 +03:00

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.