<?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 All Data in a Geodatabase using Arcpy? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36992#M2885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are 10.1 and above, you can look into the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000" target="_blank"&gt;arcpy.da.Walk&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you can loop thru a gdb looking for feature datasets and set the arcpy.env.workspace to each Feature Dataset and list all Feature classes in each one.&amp;nbsp; You should be able to list all Tables and Rasters from the top of the gdb itself as these cannot be stored inside Feature Datasets.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caleb. I just found an article discussing this. I am running 10.1 and I tested this. It works perfectly. Thanks for posting. The help file explains a little better than the article, but I like how they use the function in a defined function in the article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://arcpy.wordpress.com/tag/os-walk/"&gt;http://arcpy.wordpress.com/tag/os-walk/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2013 15:23:19 GMT</pubDate>
    <dc:creator>MikeMacRae</dc:creator>
    <dc:date>2013-10-16T15:23:19Z</dc:date>
    <item>
      <title>List All Data in a Geodatabase using Arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36990#M2883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is there any possible way to list all contents in a geodatabase using arcpy? I have a geodatabase with feature classes and tables and I want to list them all in one for loop. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.ListFeatureCLasses()# only returns the feature classes&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.ListTables() # only returns the tables &lt;/PRE&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.ListFiles() # returns all files in the workspace, not the binded feature classes or tables. &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything in the arcpy module that allows us to do this? I can't seem to find anything&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:14:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36990#M2883</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2013-10-16T14:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: List All Data in a Geodatabase using Arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36991#M2884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;If you are 10.1 and above, you can look into the [url=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000]arcpy.da.Walk[/url" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000]arcpy.da.Walk[/url&lt;/A&gt;&lt;SPAN&gt;].&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, you can loop thru a gdb looking for feature datasets and set the arcpy.env.workspace to each Feature Dataset and list all Feature classes in each one.&amp;nbsp; You should be able to list all Tables and Rasters from the top of the gdb itself as these cannot be stored inside Feature Datasets.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 14:39:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36991#M2884</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-10-16T14:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: List All Data in a Geodatabase using Arcpy?</title>
      <link>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36992#M2885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you are 10.1 and above, you can look into the &lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000023000000" target="_blank"&gt;arcpy.da.Walk&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Otherwise, you can loop thru a gdb looking for feature datasets and set the arcpy.env.workspace to each Feature Dataset and list all Feature classes in each one.&amp;nbsp; You should be able to list all Tables and Rasters from the top of the gdb itself as these cannot be stored inside Feature Datasets.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caleb. I just found an article discussing this. I am running 10.1 and I tested this. It works perfectly. Thanks for posting. The help file explains a little better than the article, but I like how they use the function in a defined function in the article:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://arcpy.wordpress.com/tag/os-walk/"&gt;http://arcpy.wordpress.com/tag/os-walk/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 15:23:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-all-data-in-a-geodatabase-using-arcpy/m-p/36992#M2885</guid>
      <dc:creator>MikeMacRae</dc:creator>
      <dc:date>2013-10-16T15:23:19Z</dc:date>
    </item>
  </channel>
</rss>

