<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic tFileCopy keeping timestamp metadata of source file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373276#M136019</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Talend 7.2.1, each time I use the &lt;B&gt;tFileCopy &lt;/B&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do that using the tFileCopy component that I missed ? or should I go with Java code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:44:32 GMT</pubDate>
    <dc:creator>CSen</dc:creator>
    <dc:date>2024-11-16T01:44:32Z</dc:date>
    <item>
      <title>tFileCopy keeping timestamp metadata of source file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373276#M136019</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Talend 7.2.1, each time I use the &lt;B&gt;tFileCopy &lt;/B&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do that using the tFileCopy component that I missed ? or should I go with Java code ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:44:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373276#M136019</guid>
      <dc:creator>CSen</dc:creator>
      <dc:date>2024-11-16T01:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: tFileCopy keeping timestamp metadata of source file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373277#M136020</link>
      <description>&lt;P&gt;@charles senechal​&amp;nbsp;,if possible can you share your job design and explain the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 02:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373277#M136020</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-08-05T02:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: tFileCopy keeping timestamp metadata of source file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373278#M136021</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well actually my job is just a &lt;B&gt;tFileCopy &lt;/B&gt;component in the job. But I found why this metadata was set with the value of the source file, the &lt;B&gt;copyFile &lt;/B&gt;method of &lt;B&gt;FileCopy &lt;/B&gt;class from &lt;B&gt;org.talend&lt;/B&gt; package :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009HvgBAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145745i1DE0897013EAE906/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009HvgBAAS.png" alt="0693p000009HvgBAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009HvfNAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156162iB74CD60AEB87D522/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009HvfNAAS.png" alt="0693p000009HvfNAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If there is another "proper" way to do it, I would be glad to know,&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 13:20:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-keeping-timestamp-metadata-of-source-file/m-p/2373278#M136021</guid>
      <dc:creator>CSen</dc:creator>
      <dc:date>2020-08-06T13:20:20Z</dc:date>
    </item>
  </channel>
</rss>

