The Ftp type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() |
Ftp()()()() |
Creates a new Ftp instance.
|
![]() |
Ftp(IContainer) | |
![]() |
Ftp(String, String, String) |
Creates a new Ftp instance with the
specified connection properties.
|
![]() |
Ftp(String, String, String, Int32) |
Creates a new Ftp instance with the
specified connection properties.
|
![]() |
Ftp(String, String, String, String) |
Creates a new Ftp instance with the
specified connection properties.
|
Methods
Name | Description | |
---|---|---|
![]() |
ChangePassword |
Changes the password
|
![]() |
ChangeUser |
Changes the currently logged-in user to the specified user without disconnecting from the FTP server.
|
![]() |
Checksum(array<Byte>[]()[][], String) |
Compares checksum of the local data and remote file.
|
![]() |
Checksum(FileInfo, String) |
Compares checksum of the local and remote files.
|
![]() |
ClearCommandChannel |
Clears command channel protection. See RFC 2228 for details.
|
![]() |
Connect |
Connects to an FTP server and performs login.
|
![]() |
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.) |
![]() |
DeleteDir |
Deletes a directory from the FTP server.
|
![]() |
DeleteFile |
Deletes the remote file from the FTP server.
|
![]() |
DirectoryExists |
Detects whether the specified directory exists on the server.
|
![]() |
DirUp |
Sets the current working directory on the FTP server to
the parent directory.
|
![]() |
Disconnect |
Quits FTP session and disconnects from FTP server.
|
![]() |
Dispose()()()() |
Releases all resources used by the Component.
(Inherited from Component.) |
![]() |
Dispose(Boolean) |
Clean up any resources being used.
(Overrides Component..::..Dispose(Boolean).) |
![]() |
Download(String) |
Downloads a file from the FTP server relative to the local directory.
|
![]() |
Download(Stream, String) |
Downloads the file from the FTP server and writes the contents
to the OutputStream.
|
![]() |
Download(String, String) |
Downloads a file from the FTP server relative to the
local directory.
|
![]() |
DownloadDir |
Downloads the remote directory and all contents
recursively from the FTP server.
|
![]() |
Equals | (Inherited from Object.) |
![]() |
FileExists |
Detects whether the specified file exists on the server.
|
![]() |
Finalize |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) |
![]() |
GetDirListing()()()() |
Gets the remote directory listing from the FTP server.
|
![]() |
GetDirListing(String) |
Gets file listing of files matching filter criteria.
Filter is any regular expression supported by the FTP server.
|
![]() |
GetDirListingArray()()()() |
Gets the remote directory listing from the FTP server.
|
![]() |
GetDirListingArray(String) |
Gets the remote directory listing from the FTP server.
|
![]() |
GetDirListingAsString()()()() |
Gets a listing of files from the remote directory.
|
![]() |
GetDirListingAsString(String) |
Gets a listing of files from the remote directory.
|
![]() |
GetFeatures |
Returns server features list.
|
![]() |
GetFeaturesArray |
Returns server features list.
|
![]() |
GetFileSize |
Gets the file size of the remote file on the FTP server
as represented in ASCII.
|
![]() |
GetFileTimeStamp |
Gets the date/timestamp of the remote file from the FTP server.
|
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetInputStream |
Gets the InputStream from the data connection.
|
![]() |
GetLifetimeService |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() |
GetMachineDirListing |
Returns directory listing.
|
![]() |
GetMachineDirListingArray |
Returns directory listing.
|
![]() |
GetMachineFileListing |
Gets the file description for the specified filename.
|
![]() |
GetNameListing()()()() |
Gets the remote directory listing from the FTP server.
|
![]() |
GetNameListing(String) |
Gets the remote directory listing from the FTP server.
|
![]() |
GetOutputStream |
Gets the OutputStream from the data connection.
|
![]() |
GetResponseCode |
Returns the code portion of the last server response.
|
![]() |
GetService | (Inherited from Component.) |
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
InitializeLifetimeService |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() |
Interrupted | Obsolete. Checks if the transfer process was interrupted. |
![]() |
IsConnected |
Checks if client is connected to FTP server.
|
![]() |
IssueCommand |
Issues a command to the FTP server.
|
![]() |
IssueCommandCheck |
Issues a command to the FTP server.
|
![]() |
LocalDirListing |
Gets the local directory listing.
|
![]() |
MakeDir |
Makes a sub-directory on the FTP server.
|
![]() |
MakeLocalDir |
Creates local directory relative to current local directory.
|
![]() |
MDelete(String) |
Deletes multiple files that match the filter from the FTP
server remote directory.
|
![]() |
MDelete(String, RegexOptions) |
Deletes multiple files that match the filter from the FTP
server remote directory.
|
![]() |
MDownload(IEnumerator) |
Downloads the specified files in the current remote directory
from the FTP server to the local directory.
|
![]() |
MDownload(String) |
Downloads multiple files that match the filter from the FTP
server remote directory.
|
![]() |
MDownload(String, RegexOptions) |
Downloads multiple files that match the filter from the FTP
server remote directory.
|
![]() |
MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) |
![]() |
MUpload(IEnumerator) |
Uploads multiple files from the local directory to the remote
directory on the FTP server.
|
![]() |
MUpload(String) |
Uploads multiple files from the local directory to the remote
directory on the FTP server.
|
![]() |
MUpload(String, RegexOptions) |
Uploads multiple files from the local directory to the remote
directory on the FTP server.
|
![]() |
Noop |
Sends a NOOP (No Operation) command to the FTP server.
|
![]() |
RenameFile |
Renames the remote file on the FTP server.
|
![]() |
Reset | Obsolete. Resets the interrupted flag to false. |
![]() |
ResumeDownload(String) |
Resumes the download of the remote file from the FTP server.
|
![]() |
ResumeDownload(String, Int64) |
Resumes the download of the remote file from the FTP server.
|
![]() |
ResumeDownload(String, String) |
Resumes the download of the remote file from the FTP server.
|
![]() |
ResumeDownload(String, String, Int64) |
Resumes the download of the remote file from the FTP server.
|
![]() |
ResumeUpload(FileInfo) |
Resumes the upload of the file to the FTP server.
|
![]() |
ResumeUpload(String) |
Resumes the upload of the file to the FTP server.
|
![]() |
ResumeUpload(FileInfo, Int64) |
Resumes the upload of the file to the FTP server.
|
![]() |
ResumeUpload(String, Int64) |
Resumes the upload of the file to the FTP server.
|
![]() |
ResumeUpload(FileInfo, String, Int64) |
Resumes the upload of the file to the FTP server.
|
![]() |
ResumeUpload(String, String, Int64) |
Resumes the upload of the file to the FTP server.
|
![]() |
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.
|
![]() |
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.
|
![]() |
SetFileTimeStamp |
Sets the date/timestamp of the remote file from the FTP server.
|
![]() |
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.
|
![]() |
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.
|
![]() |
SetServerVerifier |
Sets the server verifier. E.g. To allow server certificates from Untrusted Root Authority use Ftp.SetServerVerifier(new UnTrustedVerifier());
|
![]() |
ToString |
Returns a String containing the name of the Component, if any. This method should not be overridden.
(Inherited from Component.) |
![]() |
Upload(FileInfo) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(String) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(array<Byte>[]()[][], String) |
Uploads a byte array to the FTP server remote directory.
|
![]() |
Upload(FileInfo, Boolean) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(FileInfo, String) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(String, Boolean) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(String, String) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(array<Byte>[]()[][], String, Boolean) |
Uploads a byte array to the FTP server remote directory.
|
![]() |
Upload(FileInfo, String, Boolean) |
Uploads a local file to the FTP server remote directory.
|
![]() |
Upload(String, String, Boolean) |
Uploads a local file to the FTP server remote directory.
|
![]() |
UploadDir(FileInfo) |
Uploads the local directory and contents recursively to
the FTP server.
|
![]() |
UploadDir(String) |
Uploads the local directory and contents recursively to
the FTP server.
|
![]() |
UploadUnique(FileInfo) |
Uploads a local file to the FTP server remote directory.
|
![]() |
UploadUnique(FileInfo, String) |
Uploads a local file to the FTP server remote directory.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() |
AUTH_SSL |
The FTP connection type.
|
![]() ![]() |
AUTH_TLS |
The FTP connection type.
|
![]() ![]() |
DEFAULT |
The default FTP connection type.
|
![]() ![]() |
IMPLICIT_SSL |
The FTP connection type.
|
Properties
Name | Description | |
---|---|---|
![]() |
BlockTransferSize |
Gets/Sets the Blocksize (in bytes) for use in transferring files.
Default blocksize is 4096 bytes.
|
![]() |
CanRaiseEvents |
Gets a value indicating whether the component can raise an event.
(Inherited from Component.) |
![]() |
CommandConnection |
Gets/Sets the command connection handler.
|
![]() |
Compression |
Gets or sets whether the data is compressed during the transferring. The data will be compressed
if the Ftp server support this feature (MODE Z command)
|
![]() |
Connected |
Checks if client is connected to FTP server.
|
![]() |
ConnectionType |
Gets/Sets the current connection type.
|
![]() |
Container |
Gets the IContainer that contains the Component.
(Inherited from Component.) |
![]() |
DataConnection |
Gets/Sets the data connection handler.
|
![]() |
DataPort |
Gets/Sets the port used for incoming data connections.
|
![]() |
DataPortEnd |
Gets/Sets the end port used for incoming data connections.
|
![]() |
DataPortStart |
Gets/Sets the start port used for incoming data connections.
|
![]() |
Debug |
Gets/Sets the Debugging state.
By default all debugging information will be sent to Console.out stream.
|
![]() |
DebugStream |
Gets/Sets the Stream used in reporting statements.
By default the Console.out stream is used.
|
![]() |
DesignMode |
Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component.) |
![]() |
DiskEncoding |
Gets/Sets the character encoding used when reading data
from disk for ASCII file transfer.
|
![]() |
ErrorOnSizeCommand |
Gets or sets the indicator value which will be used by methods that invokes
GetFileSize.
|
![]() |
Events |
Gets the list of event handlers that are attached to this Component.
(Inherited from Component.) |
![]() |
FtpFileParser |
Creates an IFtpFileParser instance.
|
![]() |
HostName |
Gets/Sets the hostname or IP address of the FTP server.
|
![]() |
Interrupt |
Gets/Sets the current transfer state.
|
![]() |
LicenseKey |
License key.
|
![]() |
Linger |
Gets/Sets the length of time that the TCP connection
remains open after a call to Close when data remains to be sent.
|
![]() |
LocalDir |
Gets/Sets the local directory used in an FTP session.
|
![]() |
NATAddress |
Sets the NAT Address.
|
![]() |
Overwrite |
Gets or sets whether or not the component should overwrite files during downloads.
|
![]() |
Passive |
Gets/Sets Passive mode for data connections.
|
![]() |
Password |
Gets/Sets the password used to log in to the FTP server.
|
![]() |
Port |
Gets/Sets the port of the FTP server.
|
![]() |
PortAddress |
Gets or sets the external address to use when using active connections using the PORT command.
|
![]() |
ProxyHostname |
Gets/Sets the hostname or IP address of the Proxy server.
|
![]() |
ProxyPassword |
Gets/Sets the password used to log in to the Proxy server.
|
![]() |
ProxyPort |
Gets/Sets the port of the Proxy server.
|
![]() |
ProxyType |
Gets/Sets the type of Proxy server.
|
![]() |
ProxyUsername |
Gets/Sets the username used to log in to the Proxy server.
|
![]() |
ReadEncoding |
Gets/Sets the character encoding used when reading data commands.
|
![]() |
RemoteDir |
Gets/Sets the remote directory on the FTP server.
|
![]() |
Site | (Inherited from Component.) |
![]() |
SystemType |
Gets the system type of the FTP server.
|
![]() |
Timeout |
Gets/Sets the timeout (in milliseconds) for opening a connection
to the FTP server.
|
![]() |
TransferMode |
Gets/Sets the Transfer mode.
|
![]() |
UseEPSV |
Gets or sets the use EPSV command.
|
![]() |
User |
Gets/Sets the username used to log in to the FTP server.
|
![]() |
WireEncoding |
Gets/Sets the character encoding used when issuing
commands and reading files from the FTP server in ASCII mode.
|
Events
Name | Description | |
---|---|---|
![]() |
Disposed |
Occurs when the component is disposed by a call to the Dispose()()()() method.
(Inherited from Component.) |
![]() |
FtpAuthenticatedEvent |
Occurs when the user has been authenticated and the FTP server is established.
|
![]() |
FtpChangeLocalDirEvent |
Occurs when the local directory has been changed.
|
![]() |
FtpChangeRemoteDirEvent |
Occurs when the remote directory has been changed.
|
![]() |
FtpCommandEvent |
Occurs when a command is sent to the FTP server.
|
![]() |
FtpConnectedEvent |
Occurs when a connection to the FTP server is established.
|
![]() |
FtpConnectionLostEvent |
Occurs when a command connection to the FTP server is unexpectedly closed.
|
![]() |
FtpDataConnectionLostEvent |
Occurs when a data connection to the FTP server is unexpectedly closed.
|
![]() |
FtpDisconnectedEvent |
Occurs when a connection to the FTP server is released.
|
![]() |
FtpDownloadEvent |
Occurs when a file is downloaded from the FTP server.
|
![]() |
FtpDownloadingEvent |
Occurs when a file is downloading from the FTP server.
|
![]() |
FtpListingEvent |
Occurs when a directory listing is retrieved from the FTP server.
|
![]() |
FtpProgressEvent |
Indicates the transmit process.
|
![]() |
FtpResponseEvent |
Occurs when a response is received from the FTP server.
|
![]() |
FtpUploadEvent |
Occurs when a file is uploaded to the FTP server.
|
![]() |
FtpUploadingEvent |
Occurs when a file is uploaded to the FTP server.
|