osutils/file.go
func SafeRemoveSSH(client SFTPClient, filePath string) (err error) {
	ssh := sshClientBucket{
		client: client,
	}
	lo.G.Debug("Preparing to remove %s", filePath)
	if !ssh.exists(filePath) {
		lo.G.Debug("Removing %s", filePath)
		err = client.Remove(filePath)
	}
	return
}
func SafeRemoveSSH(client SFTPClient, filePath string) (err error) {
	ssh := sshClientBucket{
		client: client,
	}
	lo.G.Debug("Preparing to remove %s", filePath)
	if !ssh.exists(filePath) {
		lo.G.Debug("Removing %s", filePath)
		err = client.Remove(filePath)
	}
	return
}
func SafeRemoveSSH ( client SFTPClient , filePath string ) ( err error ) { ssh := sshClientBucket { client : client , } lo . G . Debug ( " " , filePath ) if ! ssh . exists ( filePath ) { lo . G . Debug ( " " , filePath ) err = client . Remove ( filePath ) } return }
// SafeRemoveSSH removes a file on a remote machine via an ssh client
SafeRemoveSSH removes a file on a remote machine via an ssh client