Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
Using Talend 7.2.1, each time I use the tFileCopy it does keep the "lastModified" metadata from the source file to the ouput file, but I would like to make a simple copy of files with the current and new modified date for the new copied file.
Is there a way to do that using the tFileCopy component that I missed ? or should I go with Java code ?
Thanks in advance,
Hi,
Thanks for the quick reply,
Well actually my job is just a tFileCopy component in the job. But I found why this metadata was set with the value of the source file, the copyFile method of FileCopy class from org.talend package :
I'm a bit disturbed that we don't have any option to allow or not this setting. So to resolve my issue I just placed back the current timestamp in the "lastModified" property of output file.
If there is another "proper" way to do it, I would be glad to know,
@charles senechal ,if possible can you share your job design and explain the problem.
Hi,
Thanks for the quick reply,
Well actually my job is just a tFileCopy component in the job. But I found why this metadata was set with the value of the source file, the copyFile method of FileCopy class from org.talend package :
I'm a bit disturbed that we don't have any option to allow or not this setting. So to resolve my issue I just placed back the current timestamp in the "lastModified" property of output file.
If there is another "proper" way to do it, I would be glad to know,