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

RegexFileFilter is broken, matches against path (and not filename)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.10.0
    • Component/s: Filters
    • Labels:
      None

      Description

      org.apache.commons.io.filefilter.RegexFileFilter.accept(Path, BasicFileAttributes) filters against path

      should be sth likeĀ 
      return toFileVisitResult(pattern.matcher(path.getFileName().toString()).matches(), path);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dr.z Dominik Reinarz
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: