Skip to content

pkg/sftp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 3, 2025
fb0652c · Jan 3, 2025
Feb 9, 2024
Jan 1, 2025
Mar 27, 2023
Mar 15, 2017
Mar 17, 2021
Jan 7, 2017
Oct 27, 2014
Mar 17, 2021
Jan 20, 2021
Mar 18, 2020
Mar 18, 2020
Jan 19, 2024
Mar 27, 2023
Aug 11, 2021
Mar 15, 2024
Dec 30, 2024
Aug 30, 2019
Oct 23, 2020
Apr 5, 2024
Jan 19, 2024
Nov 13, 2023
Mar 27, 2023
Apr 5, 2024
Apr 5, 2024
Mar 17, 2021
Mar 27, 2023
Jan 1, 2025
Dec 11, 2024
Jul 14, 2023
Apr 4, 2024
Mar 27, 2023
Mar 27, 2023
Mar 15, 2024
Mar 15, 2021
Mar 27, 2023
Feb 22, 2021
Mar 27, 2023
Apr 26, 2024
Jan 19, 2024
Jul 2, 2021
Mar 27, 2023
Jan 19, 2024
Jan 19, 2024
Mar 20, 2021
Oct 14, 2022
Feb 14, 2024
Mar 27, 2023
Mar 27, 2023
Apr 26, 2024
Apr 10, 2024
Mar 27, 2023
Apr 26, 2024
Apr 26, 2024
Oct 18, 2022
Jan 1, 2025
Jan 19, 2024
Oct 18, 2022
Oct 18, 2022
Jan 1, 2025
Jun 13, 2016
Mar 27, 2023
Mar 27, 2023
Feb 22, 2021
Mar 27, 2023
Apr 4, 2024
Oct 18, 2022
Jan 2, 2025
Oct 18, 2022
Mar 27, 2023
Dec 25, 2022
Apr 8, 2024

Repository files navigation

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.