<?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: List folders within a directory in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88813#M460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ran the code, doesn't seem to return any results... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 21:24:44 GMT</pubDate>
    <dc:creator>thomas_evans</dc:creator>
    <dc:date>2018-10-30T21:24:44Z</dc:date>
    <item>
      <title>List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88811#M458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haven't managed to find anything online which seems to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a folder lets say D:\Backup. Within that folder I have a series of folders, one for each day i.e. backup20180101, backup20180102 and so on. I am trying to write a script that will return the subfolder names into a single table. I know how to get this for the files contained within, but in this case I need the folder names. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone give any hints here, I have tried Directory and DoDir functions in a loop, but couldn't seem to get anything to work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 00:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88811#M458</guid>
      <dc:creator>thomas_evans</dc:creator>
      <dc:date>2018-10-30T00:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88812#M459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas. Maybe this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For each vSubDir in dirlist( '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;D:\Backup&lt;/SPAN&gt;\*' )&lt;/P&gt;&lt;P&gt;&amp;nbsp; Table: &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'$(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vSubDir&lt;/SPAN&gt;)' as DirName&lt;/SPAN&gt; AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Next SubDirectory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 03:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88812#M459</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-30T03:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88813#M460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ran the code, doesn't seem to return any results... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 21:24:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88813#M460</guid>
      <dc:creator>thomas_evans</dc:creator>
      <dc:date>2018-10-30T21:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88814#M461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Sorry Thomas, my mistake. Confused in the variables...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;For each vSubDir in dirlist( '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;D:\Backup&lt;/SPAN&gt;\*' )&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Table: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;LOAD &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;'$(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;vSubDir&lt;/SPAN&gt;)' as DirName&lt;/SPAN&gt; AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Next &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vSubDir &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 02:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/88814#M461</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-31T02:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/1665472#M4854</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;This also do not gives any result.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishn&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2020 15:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/1665472#M4854</guid>
      <dc:creator>Krishn</dc:creator>
      <dc:date>2020-01-14T15:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: List folders within a directory</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/1758733#M5534</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;The script by andrey_krylov works for me - but perhaps may not always work if you have the default file system restriction switched on on the newer versions of Qlik.&lt;/P&gt;&lt;P&gt;Here is something from the Qlik website that may assist - Example 2: Creating a list of files on disk:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptControlStatements/For%20Each.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptControlStatements/For%20Each.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can adjust this to load a list of folders by adding something like a subfield to the '$(File)'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 04:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/List-folders-within-a-directory/m-p/1758733#M5534</guid>
      <dc:creator>lachlanwcast</dc:creator>
      <dc:date>2020-11-05T04:51:37Z</dc:date>
    </item>
  </channel>
</rss>

