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

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4
    • 2.0
    • Filters
    • None
    • 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

            niallp Niall Pemberton
            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