<?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: [resolved] How to delete only empty folders? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327729#M97087</link>
    <description>hi, 
&lt;BR /&gt;On *nux you can use : 
&lt;BR /&gt; 
&lt;PRE&gt;"rm -r /home/raulier/todelete/"&lt;/PRE&gt; 
&lt;BR /&gt;to delete recursively dir and files "todelete". ... but be very carefull about use it 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Use a tSystem Componenet in Talend to do it 
&lt;BR /&gt; 
&lt;BR /&gt;Perhaps you can check if a dir is empty (if count tfilelist = 0 )or not ... delete file if you 're sure about it and use your code to delete dir . 
&lt;BR /&gt;laurent</description>
    <pubDate>Fri, 25 Sep 2009 10:22:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-09-25T10:22:34Z</dc:date>
    <item>
      <title>[resolved] How to delete only empty folders?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327728#M97086</link>
      <description>Hi, 
&lt;BR /&gt;is there a way of deleting all folders in a hierarchy, that are empty? 
&lt;BR /&gt;I've got a tFileList that list all my directories recursivly and a tFileDelete that deletes folders. 
&lt;BR /&gt;But it may not delete them, if they contain files 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Any idea? 
&lt;BR /&gt;Thank you in advance, 
&lt;BR /&gt;Bye, Chris</description>
      <pubDate>Sat, 16 Nov 2024 13:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327728#M97086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to delete only empty folders?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327729#M97087</link>
      <description>hi, 
&lt;BR /&gt;On *nux you can use : 
&lt;BR /&gt; 
&lt;PRE&gt;"rm -r /home/raulier/todelete/"&lt;/PRE&gt; 
&lt;BR /&gt;to delete recursively dir and files "todelete". ... but be very carefull about use it 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Use a tSystem Componenet in Talend to do it 
&lt;BR /&gt; 
&lt;BR /&gt;Perhaps you can check if a dir is empty (if count tfilelist = 0 )or not ... delete file if you 're sure about it and use your code to delete dir . 
&lt;BR /&gt;laurent</description>
      <pubDate>Fri, 25 Sep 2009 10:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327729#M97087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-25T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to delete only empty folders?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327730#M97088</link>
      <description>That's a great idea .. 
&lt;BR /&gt;I just use the system command. 
&lt;BR /&gt;It deletes every folder that is empty. 
&lt;BR /&gt;Other folders won't be deleted (it throws an error, but it is only a string and continous with the task) 
&lt;BR /&gt;Great, thank you 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 25 Sep 2009 11:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-delete-only-empty-folders/m-p/2327730#M97088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-25T11:06:00Z</dc:date>
    </item>
  </channel>
</rss>

