IFtp interface - Protocol agnostic file transfer API #
IFtp interface supports most
Sftp methods, events and properties.
IFtp is implemented in FileTransferClient, Sftp and Ftp classes.
For a details and sample code
features. Most of them are included in IFtp interface as well.
Working with underlying SFTP/FTP object #
Sometimes you have to use a feature available only in one protocol.
You can access underlying
object using the
var client = new FileTransferClient();
// send the custom FTP command using the inner Ftp object
// "FEAT" returns a list of server features
Ftp ftp = client.Inner as Ftp;
// read the response
var response = ftp.ReadResponse();
Dim client = New FileTransferClient()
' send the custom FTP command using the inner Ftp object
' "FEAT" returns a list of server features
Dim ftp As Ftp = TryCast(client.Inner, Ftp)
' read the response
Dim response = ftp.ReadResponse()