获取远程主机上的当前目录
()
| 133 | |
| 134 | // 获取远程主机上的当前目录 |
| 135 | func (sshRemote *SSHRemote) GetRemotePwd() (currentDir string, err error) { |
| 136 | currentDir, err = sshRemote.ExeSSHCommand("pwd") |
| 137 | return currentDir, err |
| 138 | } |
| 139 | |
| 140 | // 获取远程主机上的当前HOME目录 |
| 141 | func (sshRemote *SSHRemote) GetRemoteHome() (currentDir string, err error) { |
no test coverage detected