<?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: How to know whether a folder is empty - Get Files question in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70444#M23049</link>
    <description>Hi &lt;SPAN&gt;Yingjie&lt;BR /&gt;&lt;BR /&gt;You can use this VBO &lt;A href="https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management&lt;/A&gt; which helps to get files/folder count&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sat, 22 May 2021 12:07:00 GMT</pubDate>
    <dc:creator>vinodchinthakin</dc:creator>
    <dc:date>2021-05-22T12:07:00Z</dc:date>
    <item>
      <title>How to know whether a folder is empty - Get Files question</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70442#M23047</link>
      <description>&lt;P&gt;Hello, I'm trying to copy a file to a destination folder.&lt;BR /&gt;Before copying, I need to check whether the folder is empty, &lt;BR /&gt;if it's not empty, I need to trigger a email with filenames found in the folder, and&lt;BR /&gt;if it is empty, just copy.&lt;/P&gt;
&lt;P&gt;I tried to use action Get Files, and follow by a Decision stage using the Successful Flag generated by the VBO.&lt;/P&gt;
&lt;P&gt;The problem is no matter there is or is not file in the folder, the 'Success Flag' is always TRUE, so it always go to email sending stage?&lt;BR /&gt;Besides, how can I get the file names (normally 1 or 2 files only) from the Collection and include them in the email?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;Yingjie&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 19:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70442#M23047</guid>
      <dc:creator>christybu</dc:creator>
      <dc:date>2020-12-29T19:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to know whether a folder is empty - Get Files question</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70443#M23048</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Below is a sample flow which can serve your purpose&lt;/P&gt;
&lt;P class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31233.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31357i02A38FBC0AAFE021/image-size/large?v=v2&amp;amp;px=999" role="button" title="31233.png" alt="31233.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;First you would use the same Get Files action on the folder;&lt;/P&gt;
&lt;P&gt;The File details ( if any file is present ) would be in the output collection of Get Files&lt;/P&gt;
&lt;P&gt;If there are any files present the rows in the collection would be greater than 0 and the process can get file names and send email&lt;/P&gt;
&lt;P class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31234.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31361i209713BCBCA62068/image-size/large?v=v2&amp;amp;px=999" role="button" title="31234.png" alt="31234.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31235.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31362iD1DFF34C80B16999/image-size/large?v=v2&amp;amp;px=999" role="button" title="31235.png" alt="31235.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31236.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31363i8B2B11010750CF59/image-size/large?v=v2&amp;amp;px=999" role="button" title="31236.png" alt="31236.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;To extract the file names you can use a loop and keep on appending the values of Files collection.&lt;STRONG&gt;Name &lt;/STRONG&gt;in a data item and append that data item in the email&lt;/P&gt;
&lt;P class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="31237.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/31364iFE30C986967E9163/image-size/large?v=v2&amp;amp;px=999" role="button" title="31237.png" alt="31237.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;let me know if you face any issue&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Harshit Rawat&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70443#M23048</guid>
      <dc:creator>HarshitRawat</dc:creator>
      <dc:date>2020-12-30T12:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to know whether a folder is empty - Get Files question</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70444#M23049</link>
      <description>Hi &lt;SPAN&gt;Yingjie&lt;BR /&gt;&lt;BR /&gt;You can use this VBO &lt;A href="https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management" target="_blank" rel="noopener"&gt;https://digitalexchange.blueprism.com/dx/entry/113833/solution/atcs---utility-file-management&lt;/A&gt; which helps to get files/folder count&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 22 May 2021 12:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-know-whether-a-folder-is-empty-Get-Files-question/m-p/70444#M23049</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2021-05-22T12:07:00Z</dc:date>
    </item>
  </channel>
</rss>

