<?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: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224053#M16918</link>
    <description>try tFileArchive component. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Apr 2020 10:44:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-24T10:44:42Z</dc:date>
    <item>
      <title>Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224050#M16915</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to check if file exists in my local directory then i don't download it because im talking about large files .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is my job design&amp;nbsp; :&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SFTP.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA8l.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129252i6399E4E48A03D115/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA8l.png" alt="0683p000009MA8l.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Then , put the treated files into an archive .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 09:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224050#M16915</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-24T09:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224051#M16916</link>
      <description>Before you download the file, you can use tFileExist to check if the same file name already exists in local system, and then use runIf connector to trigger next processing. eg:
&lt;BR /&gt;.bababaa--tFtpFileList--iterate--tFileExist--runIf--tFTPGet....
&lt;BR /&gt;
&lt;BR /&gt;on tFileExist, set the file path as:
&lt;BR /&gt;"the local folder path/"+((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))
&lt;BR /&gt;
&lt;BR /&gt;set the condition of runIf as:
&lt;BR /&gt;!((Boolean)globalMap.get("tFileExist_1_EXISTS"))
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps you!
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 24 Apr 2020 09:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224051#M16916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T09:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224052#M16917</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp; &amp;nbsp;it works perfectly and how about to archive the files in a new directory after beeing treated ? .&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 10:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224052#M16917</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-24T10:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224053#M16918</link>
      <description>try tFileArchive component. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2020 10:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224053#M16918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T10:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224054#M16919</link>
      <description>without tFileCopy ?</description>
      <pubDate>Fri, 24 Apr 2020 10:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224054#M16919</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-24T10:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224055#M16920</link>
      <description>&lt;P&gt;yes, without tFileCopy, just set the Archive file path to another directory, I did't test it, let me know if you have any issues.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224055#M16920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-24T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Checking If file is already downloaded SFTP in Local Directory and archive the treated Files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224056#M16921</link>
      <description>&lt;P&gt;In fact , i need to copy the files to a new directory so : my job looks like :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job.PNG" style="width: 596px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA8v.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131987i8EB595B29C6CF778/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA8v.png" alt="0683p000009MA8v.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am i correct to configure this way my tFileArchive :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the file Archive section i ve put :&amp;nbsp;((String)globalMap.get("tFileList_1_CURRENT_FILE")).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000004XsnJAAS"&gt;@shong&lt;/A&gt;&amp;nbsp; If my workflow is correct let me know .&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your advices&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 11:42:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Checking-If-file-is-already-downloaded-SFTP-in-Local-Directory/m-p/2224056#M16921</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2020-04-24T11:42:19Z</dc:date>
    </item>
  </channel>
</rss>

