<?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 Re: Talend Job Copy files based on certain conditions in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321002#M91086</link>
    <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;: Thank you!&lt;/P&gt;&lt;P&gt;This is what I ended up doing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Uyg7dAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138811i2A894697BFD3A119/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Uyg7dAAB.png" alt="0695b00000Uyg7dAAB.png" /&gt;&lt;/span&gt;I got the file size and file date of the destination file at tJavaRow_2 and then compared it with the file size and file date of the source file which I got at tJavaRow_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;smaria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 23:08:01 GMT</pubDate>
    <dc:creator>smaria</dc:creator>
    <dc:date>2022-09-06T23:08:01Z</dc:date>
    <item>
      <title>Talend Job Copy files based on certain conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321000#M91084</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am really new to Talend. I am developing a job to copy files from source directory to destination directory based on certain conditions. I am using tFileExist component to find if the source file name exists in the destination directory.&lt;/P&gt;&lt;P&gt;If it does not, I am copying the file. If the file name does exist in the destination directory, I want to compare the file size and file date. If any of these two parameters differ, then I want to copy the source file and change the destination file name to "filename_original". &lt;/P&gt;&lt;P&gt;So far I am using tFileList -&amp;gt; TFileExist  (if filename does not exist)-&amp;gt; tFileCopy. &lt;/P&gt;&lt;P&gt;I am not able to figure out how to proceed further, that is getting the file size and file date and making the comparison. &lt;/P&gt;&lt;P&gt;Please help. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2022 00:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321000#M91084</guid>
      <dc:creator>smaria</dc:creator>
      <dc:date>2022-09-03T00:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job Copy files based on certain conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321001#M91085</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Using tFileProperties to read the file properties including sizes, modified date etc, compare the two properties sizes and modified date on a tJavaRow, set the result to a global variable (boolean type), this variable will be used as the condition of runIf connector that trigger tFileCopy component, the job looks like:&lt;/P&gt;&lt;P&gt;tFileList -&amp;gt; iterate--TFileExist (if filename does not exist)-&amp;gt;runIf1--&amp;gt;tFileCopy1 &lt;/P&gt;&lt;P&gt;********************************************(if file already exists)-&amp;gt;runIf2--tFileProperties--main--tJavaRow--runIf--tFIleCopy2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if you still have any quesitons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 13:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321001#M91085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-04T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job Copy files based on certain conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321002#M91086</link>
      <description>&lt;P&gt;@Shicong Hong​&amp;nbsp;: Thank you!&lt;/P&gt;&lt;P&gt;This is what I ended up doing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Uyg7dAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138811i2A894697BFD3A119/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Uyg7dAAB.png" alt="0695b00000Uyg7dAAB.png" /&gt;&lt;/span&gt;I got the file size and file date of the destination file at tJavaRow_2 and then compared it with the file size and file date of the source file which I got at tJavaRow_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;smaria&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 23:08:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321002#M91086</guid>
      <dc:creator>smaria</dc:creator>
      <dc:date>2022-09-06T23:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Talend Job Copy files based on certain conditions</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321003#M91087</link>
      <description>&lt;P&gt;Great, thanks for your screenshot of job,  it will helpful for others who have the same requirement. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 02:56:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-Job-Copy-files-based-on-certain-conditions/m-p/2321003#M91087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-07T02:56:26Z</dc:date>
    </item>
  </channel>
</rss>

