Description
Why not have those in FileUtils?
public static File getFile(final String... dirs) {
File ret = null;
for (String dir : dirs) {
if (ret == null)
else
{ ret = new File(ret.getPath(), dir); } }
return ret;
}
public static File getFile(final File dir, final String... dirs) {
File ret = dir;
for (String dir1 : dirs) {
if (ret == null)
else
{ ret = new File(ret.getPath(), dir1); } }
return ret;
}
Attachments
Issue Links
- is related to
-
IO-268 getPath with varargs parameter
- Closed