AfterRenameFile Event
Signals the completion of a file renaming operation.
Syntax
typedef struct { __int64 ConnectionID; String OldPath; String NewPath; int OperationStatus; } TsbxFTPServerAfterRenameFileEventParams; typedef void __fastcall (__closure *TsbxFTPServerAfterRenameFileEvent)(System::TObject* Sender, TsbxFTPServerAfterRenameFileEventParams *e); __property TsbxFTPServerAfterRenameFileEvent OnAfterRenameFile = { read=FOnAfterRenameFile, write=FOnAfterRenameFile };
Remarks
The component fires this event upon completion of a file renaming operation. Check the operation status, and alter it, if needed, through the OperationStatus parameter:
ostOk | 1 | |
ostNoSuchFile | 2 | |
ostAccessDenied | 3 | |
ostWriteProtect | 4 | |
ostUnsupported | 5 | |
ostInvalidParameter | 6 | |
ostEOF | 7 |