An NDoc Documented Class Library |

# FTPClient Methods

The methods of the FTPClient class are listed below. For a complete list of FTPClient class members, see the FTPClient Members topic.

#### Public Instance Methods

Account | Supply account information string to the server.
CancelResume | Cancel the resume. Use this method if something goes wrong and the server is left in an inconsistent state
CancelTransfer | Cancels the current transfer.
CdUp | Change the remote working directory to the parent directory.
ChDir | Change the remote working directory to that supplied.
Connect | Connect to the FTP server.
DebugResponses | Switch debug of responses on or off
Delete | Delete the specified remote file.
Dir | Overloaded. List a directory's contents as an array of strings of filenames.
DirDetails | Overloaded. List the current directory's contents as an array of FTPFile objects.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
Exists | Checks for the existence of a file on the server.
Features | Get the server supplied features.
Get | Overloaded. Get data from the FTP server.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetSystem | Get the type of the OS at the server.
GetType (inherited from Object) | Gets the Type of the current instance.
Help | Get the help text for the specified command
KillControlChannel |
Login | Login into an account on the FTP server using the user-name and password provided.
MkDir | Create the specified remote working directory.
ModTime | Get modification time for a remote file.
NoOperation | Send a "no operation" message that does nothing, which can be called periodically to prevent the connection timing out.
Password | Supplies the password for a previously supplied user-name to log into the FTP server. Must be preceeded by the User method
Put | Overloaded. Put a stream of data onto the FTP server in the current directory. Allows appending if current file exists
Pwd | Get the current remote working directory.
Quit | Quit the FTP session by sending a `QUIT` command before closing the socket.
QuitImmediately | Quit the FTP session immediately by closing the control socket without sending the `QUIT` command.
Quote | Issue arbitrary ftp commands to the FTP server.
Rename | Rename a file or directory.
Restart | Set the REST marker so that the next transfer doesn't start at the beginning of the remote file
Resume | Make the next file transfer (put or get) resume.
RmDir | Delete the specified remote working directory.
SetModTime | Sets the modification time of a remote file.
Site | Run a site-specific command on the server.
Size | Get the size of a remote file.
ToString (inherited from Object) | Returns a String that represents the current Object.
User | Supply the user-name to log into an account on the FTP server. Must be followed by the Password method. Note that Connect must be called first.
ValidateTransfer | Validate that the Put() or get() was successful.

#### Protected Instance Methods

Abort | Abort the current action.
CloseDataSocket | Overloaded.
Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetInputStream |
GetOutputStream |
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.
ValidateTransferOnError | Validate a transfer when an error has occurred on the data channel. Set a very short transfer in case things have hung. Set it back at the end.

#### See Also

FTPClient Class | EnterpriseDT.Net.Ftp Namespace