File: README.md

package info (click to toggle)
golang-github-tmc-scp 0.0%2B20170825-1.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 56 kB
  • sloc: makefile: 6
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (3)
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
```