实现远程升级节点

This commit is contained in:
GoEdgeLab
2020-10-28 12:35:36 +08:00
parent c13b8b99c5
commit 9c6a8c64a1
8 changed files with 286 additions and 20 deletions

View File

@@ -147,3 +147,8 @@ func (this *SSHClient) WriteFile(path string, data []byte) (n int, err error) {
n, err = fp.Write(data)
return
}
// 删除文件
func (this *SSHClient) Remove(path string) error {
return this.sftp.Remove(path)
}