The FtpClient type exposes the following members.

Constructors

  NameDescription
FtpClient
Initializes a new instance of the FtpClient class

Methods

  NameDescription
ChangeDirectory
Changes remote directory to the specified path. If the parameter starts with / then absolute path is assumed, otherwise relative to CurrentDirectory path is assumed.
ChangeDirectoryUp
Changes remote directory one folder up. If the current remote directory is the root this command has no effect.
ConnectOverloaded.
CreateDirectory
Creates remote directory
Delete
Deletes remote file or folder.
DeleteDirectory
Deletes remote directory
Disconnect
Aborts any connection that is still running.
Download
Download remote file or folder to a local destination. If remoteSource is a folder, it is downloaded recursively.
DownloadDirectory
Downloads remote directory.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
FileExists
Returns is there a remote file with the specified name.
FileSize
Returns the size of a remote file in bytes, or -1 if the file does not exist
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetMode
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IsDirectory
Checks is given remote resource a directory
ListCurrentDirectory
Returns array of FtpFileInfo objects contained in the current remote folder
ListCurrentDirectoryNames
Lists file and directory names contained in current remote folder
ListDirectory
Returns array of FtpFileInfo objects contained in the specified remote folder
ListDirectoryNames
Lists file and directory names contained in remote folder
Main
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Print
Rename
Renames remote file or folder
SetMode
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Upload
Uploads local file or folder to a remote FTP location. If the source is a folder it is uploaded recursively.
UploadDirectory
Uplolads local folder to a remote FTP location

Fields

  NameDescription
ASCII
BINARY
FTP_DEFAULT_PORT
Default port for the FTP protocol. TCP Port 21

Properties

  NameDescription
Connected
Indicates is there an active FTP connection
CurrentDirectory
Returns the current FTP directory
EnableSsl
Gets or Sets should an SSL/TLS connection be used.
Host
If connected returns the remote Host or IP address
Password
FTP account password
Port
If connected returns the TCP port on which the connection is established. Else returns the default Ftp port.
Username
FTP account username

See Also