🌐 AI搜索 & 代理 主页
Merge pull request #5 from Dogild/PanicStdinSetAfterStart

Fixed: the function copy could panic if the goroutine execution start…
tree: e5f10d6d22d8182e2e6c613a044d7e5c1d512925
  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