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

Method Remove

cli/pkg/common/sshremote.go:231–239  ·  view source on GitHub ↗

清空文件夹

(fileOrDirPath string)

Source from the content-addressed store, hash-verified

229
230// 清空文件夹
231func (instance *SSHRemote) Remove(fileOrDirPath string) bool {
232 fileOrDirPath = instance.ConvertFilePath(fileOrDirPath)
233
234 command := fmt.Sprintf(`sudo rm -rf %v`, fileOrDirPath)
235 _, err := instance.ExeSSHCommand(command)
236 CheckError(err)
237
238 return true
239}
240
241// 复制本地文件夹中的文件到 远程主机对应的目录下
242func (instance *SSHRemote) CopyDirectory(srcDirPath string, remoteDestDirPath string) error {

Callers 3

reset.goFile · 0.80
update.goFile · 0.80
execPodFunction · 0.80

Calls 3

ConvertFilePathMethod · 0.95
ExeSSHCommandMethod · 0.95
CheckErrorFunction · 0.85

Tested by

no test coverage detected