getSftp method
Returns the sftp client
Implementation
Future<SftpClient> getSftp() async {
SftpClient sftp;
try {
sftp = await client!.sftp();
} on SSHChannelOpenError {
await handleSSHChannelOpenError();
sftp = await client!.sftp();
}
return sftp;
}