spring-projects / spring-projects/spring-integration
Extend FileExistsMode with RENAME mode [INT-4475]
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 1.2k
- Avg merge
- 17h 48m
- Merged PRs (30d)
- 62
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating org.springframework.integration.file.support.FileExistsMode and the handler classes that use it. Review how existing file-existence modes are handled, then implement and verify a RENAME mode that appends a current-millis timestamp when the target file already exists and ensure all affected handlers support it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100