You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by MH...@LStelcom.com on 2025/01/21 10:31:14 UTC
Queestion about Compare File and Filename UpperLowerCase under linux
Hello Apache Hop Community,
I have two questions:
* There is a Compare file Transform that give back as result if two file are same or not, I’m wondering if there is also a transform that extracts the differences of two files and set them in another files
* We have several pipelines that we have developed without paying attention to the case (filenames). The pipelines works well under windows but with the docker image (because of Linux) the case of the filenames must be respected.
For example : the filename on the harddrive is MyExport.Json, and in the Pipeline we set Myexport.json
I’m wondering if there is a property we can set in ApacheHop that will - for example - interprete all paths in UpperCase during execution time in order to avoid this issue
Thank you in advance for your help
Michel
Re: Queestion about Compare File and Filename UpperLowerCase under linux
Posted by Bart Maertens <ba...@apache.org>.
I assume you mean the Compare Files action since there is no Compare Files
transform.
That action doesn't support wildcards, but you could use the Get File Names
transform to get your file names and pass them to your workflow as
parameters with a workflow executor transform.
Use a regular expression like "(?i)myexport.json" to match case insensitive
file name patterns.
HTH,
Bart
On Tue, Jan 21, 2025 at 11:31 AM <MH...@lstelcom.com> wrote:
> Hello Apache Hop Community,
>
>
>
> I have two questions:
>
>
>
> - There is a *Compare* file Transform that give back as result if two
> file are same or not, I’m wondering if there is also a transform that
> extracts the *differences* of two files and set them in another files
> - We have several pipelines that we have developed without paying
> attention to the case (filenames). The pipelines works well under windows
> but with the docker image (because of Linux) the case of the filenames must
> be respected.
>
> For example : the filename on the harddrive is My*E*xport.Json, and in
> the Pipeline we set My*e*xport.json
>
>
>
> I’m wondering if there is a property we can set in ApacheHop that will -
> for example - interprete all paths in UpperCase during execution time in
> order to avoid this issue
>
>
>
>
>
> Thank you in advance for your help
>
> Michel
>