Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR June 25, 2025: Build on Apache Iceberg with Qlik Open Lakehouse - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Jacco_De_Zwart
Creator
Creator

Strange behaviour tFileCopy, creates sub-directory with file name it has to copy

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:

Jacco_De_Zwart_0-1740728532572.png

 

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)

 

 

Labels (2)
1 Solution

Accepted Solutions
AmandeepDhakDT
Partner - Contributor II
Partner - Contributor II

Have you tried using the value in context.processFilePath (without the trailing slash)? E.g. /mnt/Talend/working/InleesFile/inprocess

View solution in original post

3 Replies
AmandeepDhakDT
Partner - Contributor II
Partner - Contributor II

Have you tried using the value in context.processFilePath (without the trailing slash)? E.g. /mnt/Talend/working/InleesFile/inprocess

BhuvanaRam
Partner - Contributor II
Partner - Contributor II

Try removing the context.filename in your Destination directory.

Jacco_De_Zwart
Creator
Creator
Author

yep !! that did the trick ! 

 

Thanks for pointing me in the right direction