I'm looking for a way to generate one complete list of all feature classes within all feature datasets inside a gdb.
If I execute the script below, it generates multiple lists of feature classes for each dataset within the gdb. Is there a way to combine each of these separate lists of feature classes into one complete list?
import arcpy gdb = r"...path to some gdb" arcpy.env.workspace = gdb dsList = arcpy.ListDatasets("*", feature_type="Feature") dsList.sort() for ds in dsList: print ds ...list of datasets... for ds in dsList: fcList = arcpy.ListFeatureClasses("*", feature_type="ALL", feature_dataset=ds) fcList.sort() print fcList ...separate lists of feature classes per feature dataset...
Thanks in advance!