Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4475

Extend FileExistsMode with RENAME mode

    XMLWordPrintable

Details

    Description

      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)?

       

      Attachments

        Activity

          People

            abilan Artem Bilan
            mmierins Martins M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: