[
https://issues.apache.org/jira/browse/IO-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tyler Barrus updated IO-416:
----------------------------
Attachment: incrementFileName.patch
Attached is a patch to add incrementFileName to the FileUtils class along with
test cases.
> FileUtil One-Up FileName
> ------------------------
>
> Key: IO-416
> URL: https://issues.apache.org/jira/browse/IO-416
> Project: Commons IO
> Issue Type: Wish
> Components: Utilities
> Reporter: BELUGA BEHR
> Priority: Minor
> Attachments: incrementFileName.patch
>
>
> Create a FileNameUtil or FileUtil facility that allows for creating a one-up
> extension on files that already exist.
> example:
> archive
> +-- file.txt
> +-- file.txt.1
> +-- file.txt.2
> {code}
> File file = FileNameUtils.nextOneUpFile("/archive/file.txt");
> System.out.println(file)
> // output: /archive/file.txt.3
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)