povsister / scp

Production-ready Secure Copy Protocol (SCP) implementation in Golang
https://pkg.go.dev/github.com/povsister/scp
MIT License
45 stars 10 forks source link

Error while copying directory: scp:xx/xx No such file or directory #5

Closed NoGroceries closed 4 months ago

NoGroceries commented 4 months ago

远程目录中,多层文件夹不存在,如何创建?

povsister commented 4 months ago

远程目录的根文件夹应该预先被创建好,并且具有可写权限。 在根目录不存在的情况下应该不在支持使用场景内。 这是我在openSSH自己提供的scp测试结果,test文件夹并不存在

scp: dest open "/root/test/config.json": No such file or directory
scp: failed to upload file ./config.json to /root/test/config.json