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:20:06 UTC

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

     [ 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