<?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 check if a folder exists and create if not? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/227005#M45044</link>
    <description>&lt;P&gt;Look at function&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Is Directory()&lt;/P&gt;
&lt;P&gt;to check to see if a directory exists, and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Create Directory()&lt;/P&gt;
&lt;P&gt;to create a directory&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
If( Is Directory( "C:\zippy" ) == 0,
	rc = Create Directory( "CL\zippy" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Examples and definition of these functions are found in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2019 22:27:12 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2019-09-24T22:27:12Z</dc:date>
    <item>
      <title>How to check if a folder exists and create if not?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/226994#M45042</link>
      <description />
      <pubDate>Tue, 24 Sep 2019 21:37:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/226994#M45042</guid>
      <dc:creator>ENTHU</dc:creator>
      <dc:date>2019-09-24T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a folder exists and create if not?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/227004#M45043</link>
      <description>&lt;P&gt;You are looking for the functions Directory Exists("path") and Create Directory("path"). Something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;path = "C:\foo\bar";
If(!Directory Exists(path),
     Create Directory(path),
     Print(path||" already exists.")
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Sep 2019 22:22:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/227004#M45043</guid>
      <dc:creator>MichelleG</dc:creator>
      <dc:date>2019-09-24T22:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a folder exists and create if not?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/227005#M45044</link>
      <description>&lt;P&gt;Look at function&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Is Directory()&lt;/P&gt;
&lt;P&gt;to check to see if a directory exists, and&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Create Directory()&lt;/P&gt;
&lt;P&gt;to create a directory&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
If( Is Directory( "C:\zippy" ) == 0,
	rc = Create Directory( "CL\zippy" )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Examples and definition of these functions are found in&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; Help==&amp;gt;Scripting Index&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 22:27:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-a-folder-exists-and-create-if-not/m-p/227005#M45044</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2019-09-24T22:27:12Z</dc:date>
    </item>
  </channel>
</rss>

