File: README.md

package info (click to toggle)
golang-github-tmc-scp 0.0%2Bgit20170824.f7b4864-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64 kB
  • sloc: makefile: 6
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# 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
```