TApxProtocolLog.DeleteFailed

TApxProtocolLog

property DeleteFailed : TApxDeleteFailed
TApxDeleteFailed = (dfNever, dfAlways, dfNonRecoverable);

Default: dfNonRecoverable

Determines whether received files are deleted after a protocol failure.

When a protocol receive session fails, there might be a partially received file in the destination directory (depending on when and why the session failed). DeleteFailed controls whether the TApxProtocol OnProtocolLog event handler automatically deletes a partial file. DeleteFailed can have one of the following values:

Value
Description
dfNever
Partial files are never deleted.
dfAlways
Partial files are always deleted.
Width1Width3Width2088 Width3Width5097 dfNonRecoverable
Partial files are deleted if the protocol cannot resume a failed transfer (all protocols except Zmodem).

Regardless of the value of DeleteFailed, received files are never deleted when the protocol error is ecCantWriteFile, since that error usually indicates that the receiver doesn't want to disturb an existing file with the same name.