Hi

Thanks for reporting and creating the PR.
I wonder if you would have time to try to include an unit test that tests
this relative file name is correct.

On Thu, Feb 13, 2025 at 9:37 PM Benjamin Graf <benjamin.g...@gmx.net.invalid>
wrote:

> Hi,
>
> I did open CAMEL-21739 for this and add a
> https://github.com/apache/camel/pull/17143 for a potential fix.
>
> Regards,
>
> Benjamin
> On 11.02.2025 21:29, Benjamin Graf wrote:
>
> Hi,
>
> I'm actually hunting a potential bug after upgrading to the latest 4.10.0
> Camel version. It seems that the implementation of
> GenericFileConsumer.getRelativeFilePath does return different values for
> different file systems. In my test, I'm polling a directory with antInclude
> set to "subdir/file.txt".
>
> Return value of getRelativeFilePath for file, "subdir/file.txt" and for
> ftp/sftp  "subdir" (without filename). This causes the antFilter to
> evaluate to false.
>
> Maybe a regression of CAMEL-17648. BTW it works with 4.8.3
>
> Regards
>
> Benjamin
>
>

-- 
Claus Ibsen
-----------------
@davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to