Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-268

getPath with varargs parameter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.1
    • None
    • Utilities
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              simpatico Gabriele Kahlout
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: