Hello, I have a question that I don't know how to solve.
I have an application that sends/receives files via FTP, using the
Net library. No problem with
FTP or
FTPS.
Now I want to add that it can send/receive via
SFTP, so I use the
Fsch library, it works fine too.
But, I have to duplicate the code, one activity for
Net and another activity for
Jsch.
Is there any way to do something like the following?
If bUseFtp Or bUseFtps Then
Dim myFtp As Ftp
Else
Dim myFtp As Sftp
End If
Thank you.