Solved! Go to Solution.
lstFCs = arcpy.ListFeatureClasses("*") for fc in lstFCs: print fc
dir = os.path.dirname(env.workspace + os.sep + fc) desc = arcpy.Describe(dir) if desc.dataType == "Workspace": <remaining code>
lstFCs = arcpy.ListFeatureClasses("*") for fc in lstFCs: print fc
dir = os.path.dirname(env.workspace + os.sep + fc) desc = arcpy.Describe(dir) if desc.dataType == "Workspace": <remaining code>