FileOperation Event
Marks the start of a file transfer.
Syntax
typedef struct { int Operation; String RemotePath; String LocalPath; bool Skip; bool Cancel; } TsbxFTPClientFileOperationEventParams; typedef void __fastcall (__closure *TsbxFTPClientFileOperationEvent)(System::TObject* Sender, TsbxFTPClientFileOperationEventParams *e); __property TsbxFTPClientFileOperationEvent OnFileOperation = { read=FOnFileOperation, write=FOnFileOperation };
Remarks
The component fires this event from DownloadFiles and UploadFiles to notify the application that the transfer of the next file in the list is about to start.
Use the Skip parameter to skip this particular file, or Cancel to cancel the whole multi-file operation.
Operations:
cffoDownloadFile | 0 | Download file |
cffoUploadFile | 1 | Upload file |
cffoDeleteFile | 2 | Delete file |
cffoMakeDir | 3 | Make directory |