Hi, so here's what I'm trying to do. I have a parent folder, which I'm calling my workspace. Under that folder are several subfolders, each containing one file geodatabase. Each file geodatabase contains unique feature datasets that I'm trying to merge into one final file geodatabase.
I'm stuck at building the list of the feature datasets. Here's the code in question:
folder = "C:\\Temp\\Extracted"
walk = arcpy.da.Walk(folder, datatype="FeatureDataset")
for dirpath, workspaces, datatypes in walk:
for datatype in datatypes:
This code yields *everything* in the subdirectory structure down to the feature dataset level. It lists all folder names, all file geodatabases at the .gdb level, and all feature datasets.
What I'm trying to do is get a list back of *only* feature datasets. Can someone tell me where I'm going wrong?