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

Add ability in FileFilterUtils to apply file filters to collections and arrays

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 2.0
    • Component/s: Filters
    • Labels:
      None
    • Environment:

      All

      Description

      Add features to FileFilterUtils that allow for filtering collections and maps of files that are not retrieved from directories in the standard manner. This feature could be useful for filtering files that are provided by the user or that do not all reside in the same directory.

      Example:

      List<File> files = getUserSelectedFiles();
      List<File> xmlFiles = FileFilterUtils.filterList(Arrays.<File>asList(new File("A.txt"), new File("B.xml")), FileFilterUtils.suffixFileFilter(".xml"));

        Attachments

        1. commons-io-filefilters.patch
          14 kB
          Michael Wooten

          Activity

            People

            • Assignee:
              niallp Niall Pemberton
              Reporter:
              mwooten.dev Michael Wooten
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified