Skip to content

Extend FileExistsMode with RENAME mode [INT-4475] #8413

Open
@spring-operator

Description

@spring-operator

Martins M opened INT-4475 and commented

Currently classes that make use of org.springframework.integration.file.support.FileExistsMode does not have an option to rename the new file if one already exists. The simplest renaming implementation could just add to a filename a suffix consisting of a current timestamp in millis.

Yes, this functionality can be achieved in other ways (e.g. via advice) however having inbuilt RENAME mode would make it more concise and readable.

Obviously all the handler classes would have to be updated to handle the new mode.

Is there a specific reason why this haven't been implemented (e.g. considered not needed)?

 


No further details from INT-4475

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions