You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/06/07 12:39:00 UTC
[jira] [Resolved] (IO-737) RegexFileFilter is broken, matches
against path (and not filename)
[ https://issues.apache.org/jira/browse/IO-737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory resolved IO-737.
--------------------------------
Fix Version/s: 2.10.0
Resolution: Fixed
Please don't create duplicate tickets.
> 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
> Priority: Major
> Fix For: 2.10.0
>
>
> 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)