You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gabriele Kahlout (JIRA)" <ji...@apache.org> on 2011/04/04 09:18:05 UTC

[jira] [Created] (IO-268) getPath with varargs parameter

getPath with varargs parameter
------------------------------

                 Key: IO-268
                 URL: https://issues.apache.org/jira/browse/IO-268
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.1
            Reporter: Gabriele Kahlout
            Priority: Minor
             Fix For: 2.1


How about refactoring getFile to also provide:
public static String getPath(Final File dir, final String... dirs) and 
public static String getPath(final String... dirs)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (IO-268) getPath with varargs parameter

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved IO-268.
---------------------

       Resolution: Won't Fix
    Fix Version/s:     (was: 2.1)

Cannot see any point - one can just use

FileUtils.getFile(...).getPath()

> getPath with varargs parameter
> ------------------------------
>
>                 Key: IO-268
>                 URL: https://issues.apache.org/jira/browse/IO-268
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.1
>            Reporter: Gabriele Kahlout
>            Priority: Minor
>
> How about refactoring getFile to also provide:
> public static String getPath(Final File dir, final String... dirs) and 
> public static String getPath(final String... dirs)
> Here's a use-case for it : 
> FileUtils.toFile(Thread.currentThread().getClass().getResource(FileUtils.getPath("src","test","resour­ces","YourFile.csv")); 
> http://stackoverflow.com/questions/5529532/how-to-get-a-test-resource-file

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (IO-268) getPath with varargs parameter

Posted by "Gabriele Kahlout (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabriele Kahlout updated IO-268:
--------------------------------

    Description: 
How about refactoring getFile to also provide:
public static String getPath(Final File dir, final String... dirs) and 
public static String getPath(final String... dirs)

Here's a use-case for it : 
FileUtils.toFile(Thread.currentThread().getClass().getResource(FileUtils.getPath("src","test","resour­ces","YourFile.csv")); 
http://stackoverflow.com/questions/5529532/how-to-get-a-test-resource-file

  was:
How about refactoring getFile to also provide:
public static String getPath(Final File dir, final String... dirs) and 
public static String getPath(final String... dirs)


> getPath with varargs parameter
> ------------------------------
>
>                 Key: IO-268
>                 URL: https://issues.apache.org/jira/browse/IO-268
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 2.1
>            Reporter: Gabriele Kahlout
>            Priority: Minor
>             Fix For: 2.1
>
>
> How about refactoring getFile to also provide:
> public static String getPath(Final File dir, final String... dirs) and 
> public static String getPath(final String... dirs)
> Here's a use-case for it : 
> FileUtils.toFile(Thread.currentThread().getClass().getResource(FileUtils.getPath("src","test","resour­ces","YourFile.csv")); 
> http://stackoverflow.com/questions/5529532/how-to-get-a-test-resource-file

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira