I've been using the free version of edtFTPnet for a while now and I use the code similar to this:
FTPClient _ftp;
_ftp = new FTPClient {RemoteHost = host};
_ftp.Connect();
_ftp.Login(username, password);
_ftp.ConnectMode = FTPConnectMode.PASV;
_ftp.TransferType = FTPTransferType.ASCII;
Not exactly the code, but very similar. Well, we've now purchased the pro version and I need to implement sftp. Is it possible for me to just change this block of code and still have all the other code that gets directory listings and adds/removes files to still work the same?
I tried changing FTPClient to SSHFTPClient but it has different methods and properties. Are there any good examples?