edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPClient Methods

The FTPClient type exposes the following members.

Methods
  NameDescription
Protected methodAbort
Abort the current action.
Public methodAccount
Supply account information string to the server.
Public methodCancelResume
Cancel the resume. Use this method if something goes wrong and the server is left in an inconsistent state
Public methodCancelTransfer
Cancels the current transfer.
Public methodCdUp
Change the remote working directory to the parent directory.
Public methodChDir
Change the remote working directory to that supplied.
Protected methodCloseDataSocket(Stream)
Protected methodCloseDataSocket(StreamReader)
Protected methodCloseDataSocket(StreamWriter)
Public methodConnect
Connect to the FTP server.
Public methodDebugResponses
Switch debug of responses on or off
Public methodDelete
Delete the specified remote file.
Public methodDir
List current directory's contents as an array of strings of filenames.
Public methodDir(String)
List a directory's contents as an array of strings of filenames.
Public methodDir(String, Boolean)
List a directory's contents as an array of strings.
Public methodDirDetails
List the current directory's contents as an array of FTPFile objects.
Public methodDirDetails(String)
List a directory's contents as an array of FTPFile objects.
Public methodDirDetails(String, FTPFileCallback)
List a directory's contents as an array of FTPFile objects.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodExists
Checks for the existence of a file on the server.
Public methodFeatures
Get the server supplied features.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet(String)
Get data from the FTP server.
Public methodGet(Stream, String)
Get data from the FTP server, using the currently set transfer mode.
Public methodGet(String, String)
Get data from the FTP server using the currently set transfer mode.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetInputStream
Protected methodGetOutputStream
Public methodGetSystem
Get the type of the OS at the server.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHelp
Get the help text for the specified command
Public methodKillControlChannel
Public methodLogin
Login into an account on the FTP server using the user-name and password provided.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMkDir
Create the specified remote working directory.
Public methodModTime
Get modification time for a remote file.
Public methodNoOperation
Send a "no operation" message that does nothing, which can be called periodically to prevent the connection timing out.
Public methodPassword
Supplies the password for a previously supplied user-name to log into the FTP server. Must be preceeded by the User(String) method
Public methodPut(Byte, String)
Put data onto the FTP server in the current directory.
Public methodPut(Stream, String)
Put a stream of data onto the FTP server in the current directory.
Public methodPut(String, String)
Put a local file onto the FTP server in the current directory.
Public methodPut(Byte, String, Boolean)
Put data onto the FTP server in the current directory. Allows appending if current file exists.
Public methodPut(Stream, String, Boolean)
Put a stream of data onto the FTP server in the current directory. Allows appending if current file exists
Public methodPut(String, String, Boolean)
Put a local file onto the FTP server in the current directory. Allows appending if current file exists.
Public methodPwd
Get the current remote working directory.
Public methodQuit
Quit the FTP session by sending a QUIT command before closing the socket.
Public methodQuitImmediately
Quit the FTP session immediately by closing the control socket without sending the QUIT command.
Public methodQuote
Issue arbitrary ftp commands to the FTP server.
Public methodRename
Rename a file or directory.
Public methodRestart
Set the REST marker so that the next transfer doesn't start at the beginning of the remote file
Public methodResume
Make the next file transfer (put or get) resume.
Public methodResumeDownload
Make the next download resume at a specific point.
Public methodRmDir
Delete the specified remote working directory.
Public methodSetModTime
Sets the modification time of a remote file.
Public methodSite
Run a site-specific command on the server.
Public methodSize
Get the size of a remote file.
Public methodTestConnection
Tests the connection
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUser
Supply the user-name to log into an account on the FTP server. Must be followed by the Password(String) method. Note that Connect must be called first.
Public methodValidateTransfer
Validate that the Put() or get() was successful.
Protected methodValidateTransferOnError
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.
Top
See Also