You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dominik Reinarz (Jira)" <ji...@apache.org> on 2021/06/07 12:29:00 UTC

[jira] [Created] (IO-737) RegexFileFilter is broken, matches against path (and not filename)

Dominik Reinarz created IO-737:
----------------------------------

             Summary: RegexFileFilter is broken, matches against path (and not filename)
                 Key: IO-737
                 URL: https://issues.apache.org/jira/browse/IO-737
             Project: Commons IO
          Issue Type: Bug
          Components: Filters
    Affects Versions: 2.9.0
            Reporter: Dominik Reinarz


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);



--
This message was sent by Atlassian Jira
(v8.3.4#803005)