use shellquote to quote destination argument
2 files changed
tree: 6dc689124911723114118f6889a4ef5f1e7e08c4
  1. LICENSE
  2. README.md
  3. scp.go
  4. scp_example_test.go
README.md

scp

import "github.com/tmc/scp"

Package scp provides a simple interface to copying files over a go.crypto/ssh session.

func Copy

func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, destinationPath string, session *ssh.Session) error

func CopyPath

func CopyPath(filePath, destinationPath string, session *ssh.Session) error