Commons IO
  1. Commons IO
  2. IO-126

Request case insensitive file name filter

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: Filters
    • Labels:
      None

      Description

      For windows environment, file name is case insensitive. Although it is not difficult to implement, it is convenience if the commons io includes such a filter, especially for file name suffix filtering.

        Activity

        Hide
        Niall Pemberton added a comment -

        The NameFileFilter[1] already includes case sensitivity as a feature - there are constructor variants which take an IOCase[2] parameter - providing "case sensitive", "case in-sensitive" and "system dependant case sensitivity" file name matching.

        I have added the same facility to PrefixFileFilter and SuffixFileFilter[3]

        [1] http://commons.apache.org/io/api-release/org/apache/commons/io/filefilter/NameFileFilter.html
        [2] http://commons.apache.org/io/api-release/org/apache/commons/io/IOCase.html
        [3] http://svn.apache.org/viewvc?view=rev&revision=584162

        Show
        Niall Pemberton added a comment - The NameFileFilter [1] already includes case sensitivity as a feature - there are constructor variants which take an IOCase [2] parameter - providing "case sensitive", "case in-sensitive" and "system dependant case sensitivity" file name matching. I have added the same facility to PrefixFileFilter and SuffixFileFilter [3] [1] http://commons.apache.org/io/api-release/org/apache/commons/io/filefilter/NameFileFilter.html [2] http://commons.apache.org/io/api-release/org/apache/commons/io/IOCase.html [3] http://svn.apache.org/viewvc?view=rev&revision=584162

          People

          • Assignee:
            Niall Pemberton
            Reporter:
            Franz Wong
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development