ComponentPro UltimateFtp

      ComponentPro.Net.Ftp Methods

      See AlsoMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      For a list of all members of this type, see Ftp members.

      Public Methods

      NameDescription
      Public MethodsAppendFileOverloaded. Appends the content of the specified data stream to the file on the remote FTP server.
      Public MethodsAppendFileAsyncOverloaded. Appends the content of the data stream to the file on the server.
      Public MethodsAuthenticateOverloaded. Authenticates the user to the FTP server to which it is connected using the specified username and password.
      Public MethodsAuthenticateAsyncOverloaded. Begins an asynchronous operation to authenticate the user to the FTP server.
      Public MethodsStatic MemberCalculateTimeDiffCalculates the time difference between the source and the dest file systems. (Inherited from FileSystem)
      Public MethodsCancelOverloaded. Overridden. Cancels the current operation.
      Public MethodsClearCommandChannelClears the command channel after login to facilitate firewall NAT when connecting using a secure data channel. This method reverts the protected control connection back to plaintext connection.
      Public MethodsClearCommandChannelAsyncOverloaded. Begins an asynchronous operation to send CCC command to the server. Reverts the protected control connection back to plaintext connection.
      Public MethodsCombinePathCombines two path strings. (Inherited from FileSystem)
      Public MethodsConnectOverloaded. Connects to the FTP server.
      Public MethodsConnectAsyncOverloaded. Initiates an asynchronous operation to an FTP server.
      Public MethodsCopyFromCopies data in a stream to the specified destination file on this system. (Inherited from FileSystem)
      Public MethodsCopyFromAsyncAsynchronously copies data in a stream to the specified destination file on this system. (Inherited from FileSystem)
      Public MethodsStatic MemberCopyToCopies a file from this file system to another file system. (Inherited from FileSystem)
      Public MethodsStatic MemberCopyToAsyncAsynchronously copies a file from this file system to another file system. (Inherited from FileSystem)
      Public MethodsCreateDirectoryOverridden. Create a directory on the FTP server.
      Public MethodsCreateDirectoryAsyncBegins an asynchronous CreateDirectory operation. Creates an empty directory. (Inherited from FileSystem)
      Public MethodsCreateFileInfoOverloaded. Overridden. Creates a new instance of the FtpFileInfo class and set appropriate file information.
      Public MethodsDeleteDeletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list. (Inherited from FileSystem)
      Public MethodsDeleteAsyncAsynchronously deletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter. (Inherited from FileSystem)
      Public MethodsDeleteDirectoryOverloaded. Overridden. Deletes an empty directory from the FTP server. To delete a directory containing files and subdirectories, use the DeleteDirectory method.
      Public MethodsDeleteDirectoryAsyncAsynchronously deletes the specified directory and, if indicated, any subdirectories and files in the directory. (Inherited from FileSystem)
      Public MethodsDeleteFileOverloaded. Overridden. Deletes the specified file on the remote FTP server.
      Public MethodsDeleteFileAsyncAsynchronously deletes the specified file. (Inherited from FileSystem)
      Public MethodsDirectoryExistsOverridden. Checks whether the specified directory exists on the server. Not all FTP servers support this!
      Public MethodsDirectoryExistsAsyncAsynchronously detects whether the specified directory exists on the file system. (Inherited from FileSystem)
      Public MethodsDisconnectDisconnects the FTP client from the FTP server to which it is connected.
      Public MethodsDisconnectAsyncOverloaded. Begins an asynchronous operation to inform the server that the connection is about to close and terminates the connection.
      Public MethodsDisposeReleases all used resources. (Inherited from FileSystem)
      Public MethodsDownloadOverloaded. Downloads the content of the specified remote file or directory to the destination directory using multiple threads.
      Public MethodsDownloadAsyncOverloaded. Asynchronously downloads files from the specified remote directory to the local directory. This method only downloads the items in the specified directory if the remotePath parameter does not end with a directory separator (e.g. '/'). To also create the directory in the destination, add a directory separator character at the end of that parameter.
      Public MethodsDownloadFileOverloaded. Download a file from an the server, overriding it if it already exists.
      Public MethodsDownloadFileAsyncOverloaded. Downloads the remote file to the data stream.
      Public MethodsEnsuresDirectoryCreatedEnsures the specified directory exists on the file system. If the specified directory does not exist, a new one is to be created. (Inherited from FileSystem)
      Public MethodsFileExistsOverloaded. Overridden. Checks whether the specified file exists on the server.
      Public MethodsFileExistsAsyncAsynchronous detects whether the specified file exists on the file system. (Inherited from FileSystem)
      Public MethodsFlushReads and returns control connection data, if available.
      Public MethodsFlushAsyncOverloaded. Begins an asynchronous operation to reads and returns control connection data, if available.
      Public MethodsStatic MemberGetCommonChecksumAlgorithmsGets checksum algorithms that both file system have in common. (Inherited from FileSystem)
      Public MethodsGetConnectionStateChecks to see if the current connection is still active and returns error if any.
      Public MethodsGetCurrentDirectoryOverridden. Retrieves the current working directory of the FTP server.
      Public MethodsGetCurrentDirectoryAsyncAsynchronously gets the current working directory of the file system. (Inherited from FileSystem)
      Public MethodsGetDirectoryNameReturns the directory information for the specified path string. (Inherited from FileSystem)
      Public MethodsGetDirectorySizeReturns total size of the specified directories. (Inherited from FileSystem)
      Public MethodsGetDirectorySizeAsyncAsynchronously calculates total size of the specified directory. (Inherited from FileSystem)
      Public MethodsGetDownloadStreamOverloaded. Retrieves a direct access to the read-only data stream being received.
      Public MethodsGetDownloadStreamAsyncOverloaded. Asynchronously returns a Stream for reading data from the remote file.
      Public MethodsGetFileChecksumReturns the checksum of the specified file. (Inherited from FileSystem)
      Public MethodsGetFileChecksumAsyncBegins an asynchronous GetFileChecksum operation. Retrieves the checksum of the specified file. (Inherited from FileSystem)
      Public MethodsGetFileLengthOverridden. Gets the size of the specified remote file.
      Public MethodsGetFileLengthAsyncAsynchronously retrieves the size of the specified file. (Inherited from FileSystem)
      Public MethodsGetFileNameReturns the file name and extension of the specified path string. (Inherited from FileSystem)
      Public MethodsGetFullPathReturns a full path of the specified path. (Inherited from FileSystem)
      Public MethodsGetItemInfoOverridden. Returns an FtpFileInfo object containing information of the specified file.
      Public MethodsGetItemInfoAsyncAsynchronously retrieves a FileInfoBase containing the information about the specified file or directory. (Inherited from FileSystem)
      Public MethodsGetLastWriteTimeOverridden. Returns the date and time the specified remote file or directory was last written to. Some servers return times in their local time zones, some use GMT and some do not support this feature.
      Public MethodsGetLastWriteTimeAsyncAsynchronous retrieves the modification date and time of the specified file. (Inherited from FileSystem)
      Public MethodsGetServerTimeDifferenceReturns the time difference between the client and server.
      Public MethodsGetServerTimeDifferenceAsyncOverloaded. Initiates an asynchronous operation to get the time difference between the client and server. Not all FTP servers support this!
      Public MethodsGetSupportedChecksumTypesOverridden. Returns checksum types supported by the server.
      Public MethodsGetSystemNameReturns the name of the remote OS.
      Public MethodsGetSystemNameAsyncOverloaded. Returns the name of the remote OS.
      Public MethodsGetUploadStreamOverloaded. Retrieves a direct access to the write-only data stream to send to.
      Public MethodsGetUploadStreamAsyncOverloaded. Begins an asynchronous operation to return a Stream for writing data to the remote file.
      Public MethodsIsCancelingReturns a boolean value indicating whether user has called the Cancel method. (Inherited from FileSystem)
      Public MethodsIsFatalErrorReturns a boolean value indicating whether the specified error indicates that the client should reconnect to the server.
      Public MethodsIsPathRootedGets a value indicating whether the specified path string contains absolute or relative path information. (Inherited from FileSystem)
      Public MethodsKeepAliveSends a NOOP command to the server to keep the connection alive. Some servers ignore the NOOP command.
      Public MethodsKeepAliveAsyncOverloaded. Begins an asynchronous operation to send a command or data packet to the server to keep the connection alive.
      Public MethodsListDirectoryOverloaded. Overridden. Lists all files and subdirectories in the current working directory.
      Public MethodsListDirectoryAsyncAsynchronously retrieves the list of files and directories in the specified directory. (Inherited from FileSystem)
      Public MethodsListNameOverloaded. Overridden. Returns a list of file and directory names in the current working directory. Using ListDirectory is a better choice in most cases.
      Public MethodsListNameAsyncBegins an asynchronous ListName operation. Retrieves the list of file and directory names in the current directory. (Inherited from FileSystem)
      Public MethodsListRawNameOverloaded. Retrieves an unprocessed, clear text list representing the entire contents of the current working directory as sent by the FTP server. Using ListDirectory is a better choice in most cases.
      Public MethodsListRawNameAsyncOverloaded. Begins an asynchronous ListRawName operation. Retrieves the list of files and directories in the specified directory using a raw text format.
      Public MethodsMoveMoves files that match the search condition specified in the options parameter from the specified directory to the destination directory using multiple threads. This method only moves the items of the specified directory if the sourcePath parameter does not end with a directory separator (e.g. '/' or '\'). To move the whole directory, use the Rename method instead. (Inherited from FileSystem)
      Public MethodsMoveAsyncAsynchronously moves files that match the search condition specified in the options parameter from the specified directory to the destination directory on this file system. This method only moves the items of the specified directory if the sourcePath parameter does not end with a directory separator (e.g. '/' or '\'). To move the whole directory, use the Rename method instead. (Inherited from FileSystem)
      Public MethodsMultiPartDownloadOverloaded. Downloads a file on the server and writes to the specified local file using multiple threads.
      Public MethodsNormalizePathNormalizes a path. This method normalizes path like "\my folder\\my sub folder/sub folder/\my file" to "/my folder/my sub folder/sub folder/my file" if directory separator character is '/'. (Inherited from FileSystem)
      Public MethodsQuickSynchronizeSynchronizes the specified local directory with the specified source directory with the specified options. (Inherited from FileSystem)
      Public MethodsQuickSynchronizeAsyncInitiates an asynchronous operation to synchronize contents of a source directory and a local directory. (Inherited from FileSystem)
      Public MethodsReadResponseReturns the response of the FTP server to the command that was sent previously.
      Public MethodsReadResponseAsyncOverloaded. Begins an asynchronous operation to return the server response.
      Public MethodsReinitializeTerminates the USER session and purge all account information. The session will be reset to the default settings and the connection is left open.
      Public MethodsReinitializeAsyncOverloaded. Initiates an asynchronous operation to terminate the USER session and purge all account information. The session will be reset to the default settings and the connection is left open.
      Public MethodsRemoteCopyCopies a file on this FTP server to another server specified in the destinationFtpServer parameter using direct server-to-server transfer, also known as FXP.
      Public MethodsRemoteCopyAsyncOverloaded. Starts an asynchronous copy a file on this FTP server to another server specified in the destinationFtpServer parameter using direct server-to-server transfer, also known as FXP.
      Public MethodsRenameOverridden. Renames a file or directory on the FTP server.
      Public MethodsRenameAsyncBegins an asynchronous Rename operation. Renames a file or directory on the file system. (Inherited from FileSystem)
      Public MethodsResumeDownloadFileOverloaded. Resumes download the content of the remote file to the previously interrupted local file.
      Public MethodsResumeDownloadFileAsyncOverloaded. Resumes download the content of the data stream to the previously interrupted remote file.
      Public MethodsResumeUploadFileOverloaded. Resumes uploading the content of the data stream to the previously interrupted remote file.
      Public MethodsResumeUploadFileAsyncOverloaded. Initiates an asynchronous operation to resume uploading the content of the data stream to the previously interrupted remote file.
      Public MethodsSearchSearches for files and directories that match the specified search pattern, if specified, in the directoryPath. (Inherited from FileSystem)
      Public MethodsSearchAsyncSearches for files and directories that match the specified search conditions. (Inherited from FileSystem)
      Public MethodsSendCommandSends a custom command to the FTP server.
      Public MethodsSendCommandAsyncOverloaded. Begins an asynchronous operation to execute a command on the FTP server.
      Public MethodsSetActiveTransferTypeSets active transfer type.
      Public MethodsSetCurrentDirectoryOverridden. Changes the current folder of the FTP server.
      Public MethodsSetCurrentDirectoryAsyncBegins an asynchronous SetCurrentDirectory operation. (Inherited from FileSystem)
      Public MethodsSetFilePermissionsOverloaded. Sets the permissions of the specified remote file. Not all FTP servers support this operation.
      Public MethodsSetFilePermissionsAsyncOverloaded. Initiates an asynchronous operation to set the permissions of the specified remote file. Not all FTP servers support this!
      Public MethodsSetLastWriteTimeOverridden. Sets the date and time at which the specified file was last written.Some servers do not support this feature.
      Public MethodsSetLastWriteTimeAsyncBegins an asynchronous SetLastWriteTime operation. Sets the modification date and time of the specified file. (Inherited from FileSystem)
      Public MethodsSetMultipleFilesPermissionsOverloaded. Sets the permissions of the specified remote files. Not all FTP servers support this operation.
      Public MethodsSetMultipleFilesPermissionsAsyncOverloaded. Initiates an asynchronous operation to set the permissions of the specified remote files. Not all FTP servers support this!
      Public MethodsSetSocketFactorySets the socket factory to be used to create communication sockets.
      Public MethodsSiteExecutes site-specific command and returns the response.
      Public MethodsSiteAsyncOverloaded. Executes site-specific command and returns the response.
      Public MethodsToStringOverridden. Returns a string representation of this object.
      Public MethodsStatic MemberTransferFilesTransfers files from the specified source file system to the specified destination file system. (Inherited from FileSystem)
      Public MethodsStatic MemberTransferFilesAsyncAsynchronously transfers files from the specified source file system to the specified destination file system. (Inherited from FileSystem)
      Public MethodsUpgradeConnectionSecures the connection with TLS/SSL.
      Public MethodsUpgradeConnectionAsyncOverloaded. Begins an asynchronous operation to secures the connection with TLS/SSL using the specified upgrade request type and security parameters.
      Public MethodsUploadOverloaded. Uploads files from the specified source directory on the specified source file system to the specified remote directory using multiple threads.
      Public MethodsUploadAsyncOverloaded. Asynchronously uploads files from the specified local directory to the remote directory. This method only uploads the items in the specified directory if the localPath parameter does not end with a directory separator (e.g. '\' or '/'). To also create the directory in the destination, add a directory separator character at the end of that parameter.
      Public MethodsUploadFileOverloaded. Uploads from the current position in the specified source stream and writes to the destination file on the server.
      Public MethodsUploadFileAsyncOverloaded. Begins an asynchronous operation to upload the content of the data stream to the file on the server.
      Public MethodsUploadUniqueFileOverloaded. Uploads the data from the specified Stream to the FTP server and stores it using a unique filename. Many servers do not support this feature, and many servers support this incorrectly, such as MS FTP.
      Public MethodsUploadUniqueFileAsyncOverloaded. Begins an asynchronous operation to upload the content of the data stream to the file with unique pathname on the server.
      Top

      Protected Methods

      NameDescription
      Protected MethodsDisposeOverridden. Releases the unmanaged resources used by the Ftp and optionally releases the managed resources.
      Protected MethodsFinalizeOverridden. Finalizer. Called by garbage collector during object destruction.
      Protected MethodsGetFileChecksumSyncOverridden. Returns the calculated checksum of the specified type.
      Protected MethodsGetItemInfoPartsBeforeTransferringOverridden. Indicates whether the file system should obtains information of the source files before transferring.
      Virtual Protected MethodsOnAppendFileCompletedRaises the AppendFileCompleted event.
      Virtual Protected MethodsOnAuthenticateCompletedRaises the AuthenticateCompleted event.
      Virtual Protected MethodsOnCertificateReceivedRaises the CertificateReceived event.
      Virtual Protected MethodsOnCertificateRequiredRaises the CertificateRequired event.
      Virtual Protected MethodsOnClearCommandChannelCompletedRaises the ClearCommandChannelCompleted event.
      Virtual Protected MethodsOnCommandResponseRaises the CommandResponse event.
      Virtual Protected MethodsOnConnectCompletedRaises the ConnectCompleted event.
      Protected MethodsOnCopyFromCompletedRaises the CopyFromCompleted event. (Inherited from FileSystem)
      Protected MethodsOnCopyToCompletedRaises the CopyToCompleted event. (Inherited from FileSystem)
      Protected MethodsOnCreateDirectoryCompletedRaises the CreateDirectoryCompleted event. (Inherited from FileSystem)
      Protected MethodsOnDeleteCompletedRaises the DeleteCompleted event. (Inherited from FileSystem)
      Protected MethodsOnDeleteDirectoryCompletedRaises the DeleteDirectoryCompleted event. (Inherited from FileSystem)
      Protected MethodsOnDeleteFileCompletedRaises the DeleteFileCompleted event. (Inherited from FileSystem)
      Protected MethodsOnDirectoryExistsCompletedRaises the DirectoryExistsCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnDisconnectCompletedRaises the DisconnectCompleted event.
      Virtual Protected MethodsOnDownloadCompletedRaises the DownloadCompleted event.
      Virtual Protected MethodsOnDownloadFileCompletedRaises the DownloadFileCompleted event.
      Protected MethodsOnFileExistsCompletedRaises the FileExistsCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnFlushCompletedRaises the FlushCompleted event.
      Protected MethodsOnGetCurrentDirectoryCompletedRaises the GetCurrentDirectoryCompleted event. (Inherited from FileSystem)
      Protected MethodsOnGetDirectorySizeCompletedRaises the GetDirectorySizeCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnGetDownloadStreamCompletedRaises the GetDownloadStreamCompleted event.
      Protected MethodsOnGetFileChecksumCompletedRaises the GetFileChecksumCompleted event. (Inherited from FileSystem)
      Protected MethodsOnGetFileLengthCompletedRaises the GetFileLengthCompleted event. (Inherited from FileSystem)
      Protected MethodsOnGetItemInfoCompletedRaises the GetItemInfoCompleted event. (Inherited from FileSystem)
      Protected MethodsOnGetLastWriteTimeCompletedRaises the GetLastWriteTimeCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnGetServerTimeDifferenceCompletedRaises the GetServerTimeDifferenceCompleted event.
      Virtual Protected MethodsOnGetSystemNameCompletedRaises the GetSystemNameCompleted event.
      Virtual Protected MethodsOnGetUploadStreamCompletedRaises the GetUploadStreamCompleted event.
      Virtual Protected MethodsOnKeepAliveCompletedRaises the KeepAliveCompleted event.
      Protected MethodsOnListDirectoryCompletedRaises the ListDirectoryCompleted event. (Inherited from FileSystem)
      Protected MethodsOnListNameCompletedRaises the ListNameCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnListProgressRaises the ListProgress event.
      Virtual Protected MethodsOnListRawNameCompletedRaises the ListRawNameCompleted event.
      Protected MethodsOnMoveFilesCompletedRaises the MoveCompleted event. (Inherited from FileSystem)
      Protected MethodsOnProgressRaises the Progress event. (Inherited from FileSystem)
      Protected MethodsOnQuickSynchronizeCompletedRaises the QuickSynchronizeCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnReadResponseCompletedRaises the ReadResponseCompleted event.
      Virtual Protected MethodsOnReconnectedRaises the Reconnected event.
      Virtual Protected MethodsOnReconnectingRaises the Reconnecting event.
      Virtual Protected MethodsOnReconnectionErrorCheckingRaises the ReconnectionErrorChecking event.
      Virtual Protected MethodsOnReinitializeCompletedRaises the ReinitializeCompleted event.
      Virtual Protected MethodsOnRemoteCopyCompletedRaises the RemoteCopyCompleted event.
      Protected MethodsOnRenameCompletedRaises the RenameCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnResumeDownloadFileCompletedRaises the ResumeDownloadFileCompleted event.
      Virtual Protected MethodsOnResumeUploadFileCompletedRaises the ResumeUploadFileCompleted event.
      Protected MethodsOnSearchCompletedRaises the SearchCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnSendCommandCompletedRaises the SendCommandCompleted event.
      Protected MethodsOnSetCurrentDirectoryCompletedRaises the SetCurrentDirectoryCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnSetFilePermissionsCompletedRaises the SetFilePermissionsCompleted event.
      Protected MethodsOnSetLastWriteTimeCompletedRaises the SetLastWriteTimeCompleted event. (Inherited from FileSystem)
      Virtual Protected MethodsOnSetMultipleFilesPermissionsCompletedRaises the SetMultipleFilesPermissionsCompleted event.
      Virtual Protected MethodsOnSiteCompletedRaises the SiteCompleted event.
      Virtual Protected MethodsOnStateChangedRaises the StateChanged event.
      Protected MethodsOnThreadStateChangedRaises the ThreadStateChanged event. (Inherited from FileSystem)
      Protected MethodsOnTransferConfirmOverridden. Raises the TransferConfirm event.
      Virtual Protected MethodsOnUpgradeConnectionCompletedRaises the UpgradeConnectionCompleted event.
      Virtual Protected MethodsOnUploadCompletedRaises the UploadCompleted event.
      Virtual Protected MethodsOnUploadFileCompletedRaises the UploadFileCompleted event.
      Virtual Protected MethodsOnUploadUniqueFileCompletedRaises the UploadUniqueFileCompleted event.
      Protected MethodsRenameSyncOverridden. Moves a specified file to a new location, providing the option to specify a new file name.
      Top

      See Also