This event is triggered when a file about to be received already exists on the local system. It is only triggered by the execution of the ReceiveFile or the ReceiveMultipleFiles method.
You can control what action the XceedFtp control should take. By changing the value of the eAction parameter to fraOverwrite, you can instruct the XceedFtp control to overwrite the existing file. Changing the value to fraAppend will cause the XceedFtp control append to the existing file. Changing the value to fraSkip will cause the file to be skipped (not transferred).
You can also rename or relocate the file by changing the sFilename parameter. In this case, you must set the value of eAction to either fraOverwrite or fraAppend. If the new filename specified in the sFilename parameter also exists, no new events will be triggered and the action specified will be performed on the new file specified.
Parameter | Description |
---|---|
sFilename | The filename of the local file about to be replaced. |
dtDate | The date of the local file about to be replaced. |
lFileSize | The size of the local file about to be replaced. |
sRemoteFilename | The remote file name that is replacing the local file. |
eAction | Can be either fraOverwrite, fraAppend or fraSkip. |
Declaration (event) | |
---|---|
|
Declaration (interface implementation) | |
---|---|
|