The Ftp type exposes the following members.

Methods

  Name Description
Public method ChangePassword
Changes the password
Public method ChangeUser
Changes the currently logged-in user to the specified user without disconnecting from the FTP server.
Public method Checksum(array<Byte>[]()[][], String)
Compares checksum of the local data and remote file.
Public method Checksum(FileInfo, String)
Compares checksum of the local and remote files.
Public method ClearCommandChannel
Clears command channel protection. See RFC 2228 for details.
Public method Connect
Connects to an FTP server and performs login.
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public method DeleteDir
Deletes a directory from the FTP server.
Public method DeleteFile
Deletes the remote file from the FTP server.
Public method DirectoryExists
Detects whether the specified directory exists on the server.
Public method DirUp
Sets the current working directory on the FTP server to the parent directory.
Public method Disconnect
Quits FTP session and disconnects from FTP server.
Public method Dispose()()()()
Releases all resources used by the Component.
(Inherited from Component.)
Protected method Dispose(Boolean)
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).)
Public method Download(String)
Downloads a file from the FTP server relative to the local directory.
Public method Download(Stream, String)
Downloads the file from the FTP server and writes the contents to the OutputStream.
Public method Download(String, String)
Downloads a file from the FTP server relative to the local directory.
Public method DownloadDir
Downloads the remote directory and all contents recursively from the FTP server.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method FileExists
Detects whether the specified file exists on the server.
Protected method Finalize
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.)
Public method GetDirListing()()()()
Gets the remote directory listing from the FTP server.
Public method GetDirListing(String)
Gets file listing of files matching filter criteria. Filter is any regular expression supported by the FTP server.
Public method GetDirListingArray()()()()
Gets the remote directory listing from the FTP server.
Public method GetDirListingArray(String)
Gets the remote directory listing from the FTP server.
Public method GetDirListingAsString()()()()
Gets a listing of files from the remote directory.
Public method GetDirListingAsString(String)
Gets a listing of files from the remote directory.
Public method GetFeatures
Returns server features list.
Public method GetFeaturesArray
Returns server features list.
Public method GetFileSize
Gets the file size of the remote file on the FTP server as represented in ASCII.
Public method GetFileTimeStamp
Gets the date/timestamp of the remote file from the FTP server.
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetInputStream
Gets the InputStream from the data connection.
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetMachineDirListing
Returns directory listing.
Public method GetMachineDirListingArray
Returns directory listing.
Public method GetMachineFileListing
Gets the file description for the specified filename.
Public method GetNameListing()()()()
Gets the remote directory listing from the FTP server.
Public method GetNameListing(String)
Gets the remote directory listing from the FTP server.
Public method GetOutputStream
Gets the OutputStream from the data connection.
Public method GetResponseCode
Returns the code portion of the last server response.
Protected method GetService
Returns an object that represents a service provided by the Component or by its Container.
(Inherited from Component.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method Interrupted Obsolete.
Checks if the transfer process was interrupted.
Public method IsConnected
Checks if client is connected to FTP server.
Public method IssueCommand
Issues a command to the FTP server.
Public method IssueCommandCheck
Issues a command to the FTP server.
Public method LocalDirListing
Gets the local directory listing.
Public method MakeDir
Makes a sub-directory on the FTP server.
Public method MakeLocalDir
Creates local directory relative to current local directory.
Public method MDelete(String)
Deletes multiple files that match the filter from the FTP server remote directory.
Public method MDelete(String, RegexOptions)
Deletes multiple files that match the filter from the FTP server remote directory.
Public method MDownload(IEnumerator)
Downloads the specified files in the current remote directory from the FTP server to the local directory.
Public method MDownload(String)
Downloads multiple files that match the filter from the FTP server remote directory.
Public method MDownload(String, RegexOptions)
Downloads multiple files that match the filter from the FTP server remote directory.
Protected method MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method MUpload(IEnumerator)
Uploads multiple files from the local directory to the remote directory on the FTP server.
Public method MUpload(String)
Uploads multiple files from the local directory to the remote directory on the FTP server.
Public method MUpload(String, RegexOptions)
Uploads multiple files from the local directory to the remote directory on the FTP server.
Public method Noop
Sends a NOOP (No Operation) command to the FTP server.
Public method RenameFile
Renames the remote file on the FTP server.
Public method Reset Obsolete.
Resets the interrupted flag to false.
Public method ResumeDownload(String)
Resumes the download of the remote file from the FTP server.
Public method ResumeDownload(String, Int64)
Resumes the download of the remote file from the FTP server.
Public method ResumeDownload(String, String)
Resumes the download of the remote file from the FTP server.
Public method ResumeDownload(String, String, Int64)
Resumes the download of the remote file from the FTP server.
Public method ResumeUpload(FileInfo)
Resumes the upload of the file to the FTP server.
Public method ResumeUpload(String)
Resumes the upload of the file to the FTP server.
Public method ResumeUpload(FileInfo, Int64)
Resumes the upload of the file to the FTP server.
Public method ResumeUpload(String, Int64)
Resumes the upload of the file to the FTP server.
Public method ResumeUpload(FileInfo, String, Int64)
Resumes the upload of the file to the FTP server.
Public method ResumeUpload(String, String, Int64)
Resumes the upload of the file to the FTP server.
Public method SetClientCertificate(String)
Sets the client certificate file path. The path must denote valid .cer or PEM file. null value clears the current certificate value and forces the SSL-subsystem to not use the client certificate while SSL-handshake.
Public method SetClientCertificate(String, String)
Sets the client certificate file path together with it's password The path must denote valid .cer or PEM file. null value clears the current certificate value and forces the SSL-subsystem to not use the client certificate while SSL-handshake.
Public method SetFileTimeStamp
Sets the date/timestamp of the remote file from the FTP server.
Public method SetServerCertificate(String)
Sets the server certificates file path. The path must denote valid PKCS#12/PFX file. null value forces the SSL-subsystem to not verify the server certificate while SSL-handshake.
Public method SetServerCertificate(String, String)
Sets the server certificates file path. The path must denote valid PKCS#12/PFX file. null value forces the SSL-subsystem to not verify the server certificate while SSL-handshake.
Public method SetServerVerifier
Sets the server verifier. E.g. To allow server certificates from Untrusted Root Authority use Ftp.SetServerVerifier(new UnTrustedVerifier());
Public method ToString
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.)
Public method Upload(FileInfo)
Uploads a local file to the FTP server remote directory.
Public method Upload(String)
Uploads a local file to the FTP server remote directory.
Public method Upload(array<Byte>[]()[][], String)
Uploads a byte array to the FTP server remote directory.
Public method Upload(FileInfo, Boolean)
Uploads a local file to the FTP server remote directory.
Public method Upload(FileInfo, String)
Uploads a local file to the FTP server remote directory.
Public method Upload(String, Boolean)
Uploads a local file to the FTP server remote directory.
Public method Upload(String, String)
Uploads a local file to the FTP server remote directory.
Public method Upload(array<Byte>[]()[][], String, Boolean)
Uploads a byte array to the FTP server remote directory.
Public method Upload(FileInfo, String, Boolean)
Uploads a local file to the FTP server remote directory.
Public method Upload(String, String, Boolean)
Uploads a local file to the FTP server remote directory.
Public method UploadDir(FileInfo)
Uploads the local directory and contents recursively to the FTP server.
Public method UploadDir(String)
Uploads the local directory and contents recursively to the FTP server.
Public method UploadUnique(FileInfo)
Uploads a local file to the FTP server remote directory.
Public method UploadUnique(FileInfo, String)
Uploads a local file to the FTP server remote directory.

See Also