Closed
Description
Expected Behavior
The Ftp.outboundGateway
should support a fileExistModeExpression()
method that accepts a SpEL expression to dynamically determine the FileExistsMode at runtime. This would allow users to conditionally choose between REPLACE
, APPEND
, FAIL
, or other file exist modes based on message content or context variables.
Current Behavior
Currently, the Ftp.outboundGateway
only supports fileExistMode()
which accepts a static FileExistsMode value. This mode is fixed at configuration time and cannot be changed dynamically during message processing.
Context
I'd be willing to implement this feature if the team agrees it would be valuable to the Spring Integration community.