commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "BELUGA BEHR (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-416) FileUtil One-Up FileName
Date Tue, 10 Dec 2013 00:42:06 GMT
BELUGA BEHR created IO-416:
------------------------------

             Summary: 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


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.1.4#6159)

Mime
View raw message