https://github.com/tmc/scp
A basic implementation of scp for go.
https://github.com/tmc/scp
Last synced: 11 months ago
JSON representation
A basic implementation of scp for go.
- Host: GitHub
- URL: https://github.com/tmc/scp
- Owner: tmc
- License: isc
- Created: 2014-07-08T05:15:22.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T17:46:55.000Z (almost 9 years ago)
- Last Synced: 2024-12-01T10:23:43.523Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 61
- Watchers: 6
- Forks: 20
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scp
import "github.com/tmc/scp"
Package scp provides a simple interface to copying files over a
go.crypto/ssh session.
## func Copy
``` go
func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, destinationPath string, session *ssh.Session) error
```
## func CopyPath
``` go
func CopyPath(filePath, destinationPath string, session *ssh.Session) error
```