Implements the File Transfer Protocol.
For a list of all members of this type, see FtpClient Members.
System.Object
SocketTools.FtpClient
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The FtpClient class provides a comprehensive interface to the File Transfer Protocol which supports both high level operations, such as uploading or downloading files, as well as a collection of lower-level file I/O functions. In addition to file transfers, an application can create, rename and delete files and directories, search for files using wildcards and perform other common file management functions. The class library has three distinct groups of functionality:
File Transfer
Methods which enable an application to upload and download files, as well as send and receive file data using memory buffers. This gives your program the flexibility of handling the data either on disk or in memory, depending on the best needs of your application. If your program needs to transfer more than one file at a time, there are also methods which will automatically download or upload multiple files in a single method call.File Management
In addition to transferring files, the class can be used to manage files on the server. Methods are provided to delete, rename and move files between directories. For servers that support specific protocol extensions, advanced features such as getting or setting a remote file's modification time or access permissions are also supported. If a server supports site-specific commands, such as the ability to submit a file as job on the server, the control supports this by enabling you to send custom commands to the server and then process the information that it returns.Directory Management
The class can be used to manage directories as well as files on the server. The application can open a directory and return a list of the files that it contains, as well as create new directories and delete empty ones. The class understands a number of different directory listing formats, including those typically used on UNIX and Linux based systems, Windows server platforms, NetWare servers and VMS systems.
This class supports secure file transfers using TLS 1.2 and the SSH 2.0 protocol using SFTP.
Namespace: SocketTools
Assembly: SocketTools.FtpClient (in SocketTools.FtpClient.dll)