DeleteCompleted (ServerPath As String, Success As Boolean) DownloadCompleted (ServerPath As String, Success As Boolean) UploadCompleted (ServerPath As String, Success As Boolean) ListCompleted (ServerPath As String, Success As Boolean, Folders() As FTPEntry, Files() As FTPEntry) CommandCompleted (Command As String, Success As Boolean, ReplyCode As Int, ReplyString As String)
Downloads the file from the server. The DownloadCompleted event will be raised when download completes. ServerFilePath - Full path to the remote file. Unused - Unused boolean value (kept for signature compatibility). DeviceFolder / DeviceFile - The file will be downloaded to this path.
Initializes the object and set the subs that will handle the events. EventName - Subs prefix. Host - FTP host name or ip address. Port - FTP port number (usually 21). User / Password - User credentials.
Fetches the list of folders and files in the specified path. The ListCompleted event will be raised when the data is available.
Gets or sets whether FTP is in passive mode. The default mode is active mode.
SendCommand (CommandAsString, ParametersAsString)
Sends an FTP command. The CommandCompleted event will be raised with the server reply. Should only be used with commands that return the reply in the command channel. Example: FTP.SendCommand("MKD", "/somefolder/newfolder")
Uploads a local file to the server. The UploadCompleted event will be raised when upload completes. DeviceFolder / DeviceFile - File to upload. Unused - Unused boolean value (kept for signature compatibility). ServerFilePath - The full path to the server file that will be created.