I have a folder with numerous geodatabases in it. Within the geodatabases are feature classes. I would like to get a list of the feature classes in these geodatabases using a Python script. I've only gotten so far as listing the geodatabases. Does anyone have a suggestion on listing the feature classes in the geodatabases?
The print item line in my script gives me the following results:
C:\output\data.gdb C:\output\otherdata.gdb C:\output\somethingelse.gdb
I want to generate a list of the feature classes in the geodatabases above. Below is my script so far.
import arcpy, os, sys from arcpy import env arcpy.env.workspace = "D:\\output" inWorkspace = arcpy.env.workspace workspaces = arcpy.ListWorkspaces("*", "FileGDB") for item in workspaces: print item #This part gives me the print statements I shared above # fcList = arcpy.ListFeatureClasses() #I haven't figured this part out #I want to list the feature classes in the geodatabases