FileOperationResult Event
Reports the result of a file transfer operation.
Syntax
typedef struct { int Operation; String RemotePath; String LocalPath; int ErrorCode; String Comment; bool Cancel; } TsbxFTPClientFileOperationResultEventParams; typedef void __fastcall (__closure *TsbxFTPClientFileOperationResultEvent)(System::TObject* Sender, TsbxFTPClientFileOperationResultEventParams *e); __property TsbxFTPClientFileOperationResultEvent OnFileOperationResult = { read=FOnFileOperationResult, write=FOnFileOperationResult };
Remarks
The component fires this event from DownloadFiles and UploadFiles to notify the application of the completion of a file operation.
ErrorCode and Comment provide the details of the operation. Use the Cancel parameter to terminate the whole multi-file operation if needed.
Operations:
cffoDownloadFile | 0 | Download file |
cffoUploadFile | 1 | Upload file |
cffoDeleteFile | 2 | Delete file |
cffoMakeDir | 3 | Make directory |