Hi,
I have a list of geodatabase feature class names and I would like to have the dataset names for each if any.
Ideally I would prefer not to loop over each element of the geodatabase to find it. I was hoping arcpy.Describe would contain that information, but no.
import os, arcpy
workspace = "path/to/geodatabase.gdb"
fc_list = ["fc_1_name", "fc_2_name", "fc_3_name"]
for fc in fc_list:
desc = arcpy.Describe(os.path.join(workspace, fc))
print(desc.catalogPath) #does not includes dataset if any
Any suggestion would be appreciated!
Thanks