<?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: Folder creation within Files in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678468#M192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - you can use python code to create folders in this location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2020 17:28:15 GMT</pubDate>
    <dc:creator>NikhilShampur</dc:creator>
    <dc:date>2020-04-07T17:28:15Z</dc:date>
    <item>
      <title>Folder creation within Files</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678467#M191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within Files, you have a home and a samplesdata folder. Is it possible to create additional folders?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/473550_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 22:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678467#M191</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-15T22:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Folder creation within Files</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678468#M192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes - you can use python code to create folders in this location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678468#M192</guid>
      <dc:creator>NikhilShampur</dc:creator>
      <dc:date>2020-04-07T17:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Folder creation within Files</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678469#M193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make a single directory:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import os&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px; text-decoration: none;"&gt;if not os.path.exists("&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;/arcgis/home/newdir"&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0.0001pt; font-size: 11pt; color: #000000; text-indent: 0px; text-decoration: none;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;os&lt;/SPAN&gt;&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;mkdir&lt;/SPAN&gt;&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;("&lt;/SPAN&gt;&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;/arcgis/home/newdir"&lt;/SPAN&gt;&lt;SPAN style="border: 1pt none windowtext; background-color: #ffffff; padding: 0in; color: #000000; font-size: 10.5pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;To make a subdirectories when none of them exist:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="caret-color: #000000; color: #000000; font-family: Calibri, sans-serif; font-size: 14.666666984558105px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;"&gt;import os&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="caret-color: #000000; color: #000000; font-family: Calibri, sans-serif; font-size: 14.666666984558105px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; display: inline !important; float: none;"&gt;os.makedirs("/arcgis/home/non-existent-dir1/non-existent-dir2/")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;IMG __jive_id="487711" alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/487711_Screen Shot 2020-04-07 at 10.31.13 AM.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678469#M193</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-07T17:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Folder creation within Files</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678470#M194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David - that's awesome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2020 19:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/folder-creation-within-files/m-p/678470#M194</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-07T19:04:33Z</dc:date>
    </item>
  </channel>
</rss>

