You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2011/05/11 23:53:47 UTC
[jira] [Resolved] (IO-268) getPath with varargs parameter
[ 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