mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-17 19:00:24 +08:00
实现远程升级节点
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user