<?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: subfolder delete using tftp in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291716#M64872</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The Target Type will control what jsch method will be called ( ChannelSftp.rm() for files and ChannelSftp.rmdir() for directories ).&lt;/P&gt;&lt;P&gt;As long as&amp;nbsp;specific file mask(s) is used to delete all the files, it doesn't matter Target Type is "File" or "Directory", it would only delete the files and always keep the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Only the file mask "*" + Target Type "Directory" combination would delete the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your use case, you will need to use specific file mask(s) which would delete all the files, but the file mask shouldn't be "*" and you can use the data mask from the tFTPList.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFTPList--Iterate--&amp;gt;tFTPDelete and use the global parameter from FTPList in FTPDelete.&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Fri, 18 Mar 2022 08:21:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-18T08:21:34Z</dc:date>
    <item>
      <title>subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291713#M64869</link>
      <description>&lt;P&gt;I am trying to delete all the subfolder and file using tftpfiledelete but none of the option seems to be working and throws an error Below is the screenshot of the setup.I need to traverse all the sub directories and delete each file and folder under the parent directory. Any help would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000PKc9fAAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147477iB2FE9CF48C235754/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000PKc9fAAD.png" alt="0695b00000PKc9fAAD.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291713#M64869</guid>
      <dc:creator>smathew2949</dc:creator>
      <dc:date>2024-11-15T23:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291714#M64870</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;What the error are you getting when you are trying to delete all the sub-folder?&lt;/P&gt;&lt;P&gt;The tFTPDelete component uses 3rd party libraries (such as package com.enterprisedt.*) which doesn't allow deleting non-empty ftp directories.&lt;/P&gt;&lt;P&gt;However it's possible to achieve this with a routine which does this 'recursively'.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 02:06:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291714#M64870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-16T02:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291715#M64871</link>
      <description>&lt;P&gt;It gives me below exception &lt;/P&gt;&lt;P&gt;Exception in component tFTPDelete_1 (abc)&lt;/P&gt;&lt;P&gt;4: /temp/csv&lt;/P&gt;&lt;P&gt;	at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2873)&lt;/P&gt;&lt;P&gt;	at com.jcraft.jsch.ChannelSftp.rmdir(ChannelSftp.java:2149)&lt;/P&gt;&lt;P&gt;	at test.tFTPDelete_1Process(test.java:1630)&lt;/P&gt;&lt;P&gt;	at test.angfedpm.tFileList_4Process(test.java:14109)&lt;/P&gt;&lt;P&gt;	at test.run(test.java:16809)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree if the folders are not empty it does not allow to delete the folder however in my case i have many such subfolder let us at runtime there would be sub-folder with name as timestamp eg.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;csv&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;112345678&lt;UL&gt;&lt;LI&gt;a1.csv&lt;/LI&gt;&lt;LI&gt;a2.csv&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;645755757&lt;UL&gt;&lt;LI&gt;b1.csv&lt;/LI&gt;&lt;LI&gt;b2.csv&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;so i wont know how to iterate through all and delete the files under them before the deleting the folder &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the routine do you have sample to share&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 12:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291715#M64871</guid>
      <dc:creator>smathew2949</dc:creator>
      <dc:date>2022-03-17T12:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291716#M64872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The Target Type will control what jsch method will be called ( ChannelSftp.rm() for files and ChannelSftp.rmdir() for directories ).&lt;/P&gt;&lt;P&gt;As long as&amp;nbsp;specific file mask(s) is used to delete all the files, it doesn't matter Target Type is "File" or "Directory", it would only delete the files and always keep the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Only the file mask "*" + Target Type "Directory" combination would delete the directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your use case, you will need to use specific file mask(s) which would delete all the files, but the file mask shouldn't be "*" and you can use the data mask from the tFTPList.&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFTPList--Iterate--&amp;gt;tFTPDelete and use the global parameter from FTPList in FTPDelete.&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 08:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291716#M64872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-18T08:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291717#M64873</link>
      <description>&lt;P&gt;tFTPList--Iterate--tFTPDelete would not work in my case since i have many subfolder which i would need to iterate and delete all the files under how can i do this i haven't found a way yet to do this please let me know&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 16:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291717#M64873</guid>
      <dc:creator>smathew2949</dc:creator>
      <dc:date>2022-03-21T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291718#M64874</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Would you mind giving us some example about your many sub-folder structure? Does the combination of tFTPDelete_1--&amp;gt;OnComponentOK--&amp;gt;tFTPDelete_2 helps?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 04:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291718#M64874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-22T04:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: subfolder delete using tftp</title>
      <link>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291719#M64875</link>
      <description>&lt;P&gt;In my case number of sub folder is not fixed based on certain condition it may vary . can you share a screenshot for tFTPDelete_1--&amp;gt;OnComponentOK--&amp;gt;tFTPDelete_2  and helpme understand what will the firsttFTPDelete_1 will do and what will be the role of tFTPDelete_2&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 04:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/subfolder-delete-using-tftp/m-p/2291719#M64875</guid>
      <dc:creator>smathew2949</dc:creator>
      <dc:date>2022-04-28T04:16:35Z</dc:date>
    </item>
  </channel>
</rss>

