More .NET libraries
-
Rebex FTP
.NET FTP client
-
Rebex SSH Shell
.NET SSH Shell
-
Rebex Total Pack
All Rebex .NET libraries together
Back to feature list...
Common API for SFTP and FTP
On this page:
Protocol-agnostic file transfer API
SFTP and FTP - two different protocols for the same task
FTP and SFTP (implemented in Ftp
and Sftp
objects) are two different file transfer protocols.
Implementation is completely different, but they both cover same task - transferring files over the network.
Read more about the differences between FTP, FTPS, SFTP, FTP/TLS, Secure FTP and SCP.
IFtp - protocol agnostic file-transfer API
IFtp
interface supports most Ftp
and Sftp
methods, events and properties.
For a list of all IFtp
methods, events and properties, see IFtp reference guide.
// declare a protocol-independent variable IFtp client; // get connected and authenticated FTP or SFTP object // you have to provide your own implementation for GetIFtpInstance method client = GetIFtpInstance(); // the remaining code works with both FTP and SFTP sessions client.ChangeDirectory(targetDirectory); client.PutFile(@"C:\MyData\file.txt", "file.txt"); // IFtp supports Disconnect as well client.Disconnect();
' declare a protocol-independent variable Dim client As IFtp ' get connected and authenticated FTP or SFTP object ' you have to provide your own implementation for GetIFtpInstance method client = GetIFtpInstance() ' the remaining code works with both FTP and SFTP sessions client.ChangeDirectory(targetDirectory) client.PutFile("C:\MyData\file.txt", "file.txt") ' IFtp supports Disconnect as well client.Disconnect()
SFTP and FTP client in a single class
FileTransferClient class supports both SFTP and FTP in a single class.
This class is not included in Rebex SFTP. To get it obtain either Rebex File Transfer Pack or Rebex Total Pack.
Back to feature list...