Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I'm using the tFileCopy component to move a file that need to be processed in an DI-Job.
Based on context variables I perform the following :
context.fileName = "inlees_vessel_file.xlsx"
context.processFilePath = "/mnt/Talend/working/InleesFile/inprocess/"
the tFileCopy component:
When executed the file is copied to :
\mnt\Talend\working\InleesFile\inprocess\inlees_vessel_file.xlsx\inlees_vessel_file.xlsx
Why is there a sub-directory with the same name as the file (the bold part) created ??? This behaviour is the same on run-time engine on linux as it is in Studio on a windows environment.
Using the checkboxes for 'Create the directory if it doesn't exists' does not influence the result.
Any help or suggestions are welcome.
I use Studio Cloud API Services Platform (R2025-01v2)
Have you tried using the value in context.processFilePath (without the trailing slash)? E.g. /mnt/Talend/working/InleesFile/inprocess
Have you tried using the value in context.processFilePath (without the trailing slash)? E.g. /mnt/Talend/working/InleesFile/inprocess
Try removing the context.filename in your Destination directory.
yep !! that did the trick !
Thanks for pointing me in the right direction