<?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 FGDB exists in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660623#M51340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you also want to make sure it is a valid fgdb, look at arcpy.Describe("path/to/f.gdb") and check its dataType&lt;/P&gt;&lt;P&gt;== "Workspace"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 12:47:21 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2015-10-05T12:47:21Z</dc:date>
    <item>
      <title>How to check if a FGDB exists in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660620#M51337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I check in Python if a FGDB exists?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:06:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660620#M51337</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2015-10-05T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a FGDB exists in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660621#M51338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14440481814783992 jive_text_macro" data-renderedposition="8_8_912_16" jivemacro_uid="_14440481814783992" modifiedtitle="true"&gt;&lt;P&gt;arcpy.Exists(r"C:\Path\To\fgdb.gdb")&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will check if it exists, but not if it is a valid geodatabase. If you have an empty folder with a .gdb extension, it will still return True. So, depending on your needs this may or may not be what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660621#M51338</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2015-10-05T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a FGDB exists in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660622#M51339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried using arcpy.Exists?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//018v0000004p000000" title="http://resources.arcgis.com/EN/HELP/MAIN/10.2/index.html#//018v0000004p000000"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the help&lt;/P&gt;&lt;H2&gt; &lt;/H2&gt;&lt;P&gt;Determines the existence of the specified data object. Tests for the existence of feature classes, tables, &lt;BR /&gt;datasets, shapefiles, &lt;STRONG&gt;workspaces&lt;/STRONG&gt;, layers, and files in the current workspace. The function returns a Boolean indicating if the element exists. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660622#M51339</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-10-05T12:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a FGDB exists in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660623#M51340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So if you also want to make sure it is a valid fgdb, look at arcpy.Describe("path/to/f.gdb") and check its dataType&lt;/P&gt;&lt;P&gt;== "Workspace"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 12:47:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660623#M51340</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2015-10-05T12:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if a FGDB exists in Python</title>
      <link>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660624#M51341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly. And if you want to exclude other types of workspace, you could check the workspaceType property of the describe object, or even workspaceFactoryProgID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-check-if-a-fgdb-exists-in-python/m-p/660624#M51341</guid>
      <dc:creator>BerendVeldkamp</dc:creator>
      <dc:date>2015-10-05T13:08:35Z</dc:date>
    </item>
  </channel>
</rss>

