You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Oscar Besga Arcauz <os...@panel.es.INVALID> on 2025/08/20 15:24:28 UTC
Problem with RegexFileFilter
Hi all
In our project we want to upgrade the commons-io library to the newest version.
However, in our tests, we have found errors related to RegexFileFilter.
Oddly, the error raises in linux but not in windows, so we wonder what are we doing wrong
We want the filter to search for files to be later deleted, and we use these filters in the test.
We use two regexp filters inside a OrFileFilter
This is the log
OrFileFilter(RegexFileFilter [pattern=^.*12345ToBeDeleted.*],RegexFileFilter [pattern=^.*43210ToBeDeleted.*]
I see no differences between Linux and Windows executions, and I don't have a clue on what could be happening.
Thanks in advance
Re: Problem with RegexFileFilter
Posted by Gary Gregory <ga...@gmail.com>.
Hello,
What is the error? Do you have a stack trace?
If you can provide a unit test or a small reproducer, we can have something
no test.
Ty,
Gary
On Wed, Aug 20, 2025, 12:53 Oscar Besga Arcauz <os...@panel.es.invalid>
wrote:
> Hi all
>
> In our project we want to upgrade the commons-io library to the newest
> version.
> However, in our tests, we have found errors related to RegexFileFilter.
> Oddly, the error raises in linux but not in windows, so we wonder what are
> we doing wrong
>
> We want the filter to search for files to be later deleted, and we use
> these filters in the test.
> We use two regexp filters inside a OrFileFilter
>
> This is the log
> OrFileFilter(RegexFileFilter
> [pattern=^.*12345ToBeDeleted.*],RegexFileFilter
> [pattern=^.*43210ToBeDeleted.*]
>
> I see no differences between Linux and Windows executions, and I don't
> have a clue on what could be happening.
>
>
> Thanks in advance
>
>