<?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 walk a directory with many sub-folders to fetch specific files? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249686#M49032</link>
    <description>&lt;P&gt;also take a look at multiple file import. It may be exactly what you need.&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 15:31:19 GMT</pubDate>
    <dc:creator>Craige_Hales</dc:creator>
    <dc:date>2020-02-28T15:31:19Z</dc:date>
    <item>
      <title>How to walk a directory with many sub-folders to fetch specific files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249564#M49013</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a folder/directory with many sub folders. In each of the subfolder there are bunch of csv files. Each csv file has a unique ID in the filename. My question is that if I have a list of IDs then how can I traverse the directory to fetch those specific csv files and concatenate them in a jmp table? Is there a way to do it with a script (JSL)? I will appreciate any guidance. CSV file name is similar to "Y123456_File_27A7Z123456.csv". String after File_ is the unique id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 23:07:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249564#M49013</guid>
      <dc:creator>rverma</dc:creator>
      <dc:date>2020-02-27T23:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to walk a directory with many sub-folders to fetch specific files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249573#M49015</link>
      <description>&lt;P&gt;The Files in Directory() function has a recursive option that returns the full path to each of the files found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help=&amp;gt;Scripting Index=&amp;gt;Files in Directory&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 01:08:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249573#M49015</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-02-28T01:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to walk a directory with many sub-folders to fetch specific files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249686#M49032</link>
      <description>&lt;P&gt;also take a look at multiple file import. It may be exactly what you need.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:31:19 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/249686#M49032</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2020-02-28T15:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to walk a directory with many sub-folders to fetch specific files?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/250274#M49127</link>
      <description>&lt;P&gt;Thank you. I was able to achieve what I wanted by saving all filenames in the directory into a list.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;filelist=Files In Directory( path1, recursive);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Then I created another list of the unique IDs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;unitIDlist = {"AA", "AB","AC"};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Finally I used Nested For loop to find the files that contains unique IDs in the filename and open and concatenate them to the first file.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 23:04:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-walk-a-directory-with-many-sub-folders-to-fetch-specific/m-p/250274#M49127</guid>
      <dc:creator>rverma</dc:creator>
      <dc:date>2020-03-02T23:04:17Z</dc:date>
    </item>
  </channel>
</rss>

