<?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 Get files from FTP, then delete them in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Get-files-from-FTP-then-delete-them/m-p/2248776#M33530</link>
    <description>&lt;P&gt;I would like download all the files from an FTP directory and then delete them when they have been successfully downloaded.&amp;nbsp; If new files have been placed in the FTP directory during the process, I need to make sure not to delete them--only the ones that have been downloaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can use tFTPFileList to get the list of files, tFTPGet to download them, and tFTPDelete to delete them.&amp;nbsp; I can easily download all the files at once from the directory and delete all the files at once.&amp;nbsp; How can I make sure that I only delete the files that I downloaded and that no new files have been added to the FTP directory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to download and delete the files one at a time by name?&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 22:20:41 GMT</pubDate>
    <dc:creator>shake</dc:creator>
    <dc:date>2020-05-12T22:20:41Z</dc:date>
    <item>
      <title>Get files from FTP, then delete them</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-files-from-FTP-then-delete-them/m-p/2248776#M33530</link>
      <description>&lt;P&gt;I would like download all the files from an FTP directory and then delete them when they have been successfully downloaded.&amp;nbsp; If new files have been placed in the FTP directory during the process, I need to make sure not to delete them--only the ones that have been downloaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know I can use tFTPFileList to get the list of files, tFTPGet to download them, and tFTPDelete to delete them.&amp;nbsp; I can easily download all the files at once from the directory and delete all the files at once.&amp;nbsp; How can I make sure that I only delete the files that I downloaded and that no new files have been added to the FTP directory?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to download and delete the files one at a time by name?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 22:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-files-from-FTP-then-delete-them/m-p/2248776#M33530</guid>
      <dc:creator>shake</dc:creator>
      <dc:date>2020-05-12T22:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get files from FTP, then delete them</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Get-files-from-FTP-then-delete-them/m-p/2248777#M33531</link>
      <description>&lt;P&gt;Here's what I've come up with so far:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="flow.png" style="width: 608px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Ma0P.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143969i73AAC5547D60F643/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Ma0P.png" alt="0683p000009Ma0P.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;The file mask in both the tFTPGet and tFTPDelete is:&lt;/P&gt; 
&lt;P&gt;((String)globalMap.get("tFTPFileList_1_CURRENT_FILE"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It seems to be working.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 22:43:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Get-files-from-FTP-then-delete-them/m-p/2248777#M33531</guid>
      <dc:creator>shake</dc:creator>
      <dc:date>2020-05-12T22:43:26Z</dc:date>
    </item>
  </channel>
</rss>

