commit | f7b48647feef3e30991f2ecc16b2b9a977d9a7c3 | [log] [tgz] |
---|---|---|
author | Travis Cline <travis.cline@gmail.com> | Thu Aug 24 16:23:07 2017 |
committer | Travis Cline <travis.cline@gmail.com> | Thu Aug 24 17:46:25 2017 |
tree | 6dc689124911723114118f6889a4ef5f1e7e08c4 | |
parent | 4e30f5236ab68d924e0ee7b39737650945be4ef6 [diff] |
use shellquote to quote destination argument
import "github.com/tmc/scp"
Package scp provides a simple interface to copying files over a go.crypto/ssh session.
func Copy(size int64, mode os.FileMode, fileName string, contents io.Reader, destinationPath string, session *ssh.Session) error
func CopyPath(filePath, destinationPath string, session *ssh.Session) error