MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / GetRemotePwd

Method GetRemotePwd

cli/pkg/common/sshremote.go:135–138  ·  view source on GitHub ↗

获取远程主机上的当前目录

()

Source from the content-addressed store, hash-verified

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

Callers 2

ConvertFilePathMethod · 0.95

Calls 1

ExeSSHCommandMethod · 0.95

Tested by

no test coverage detected