Skip to content

Support fileExistModeExpression() in Ftp.outboundGateway #9988

Closed
@anthologia

Description

@anthologia

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions