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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.10.0
    • Filters
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: