I would like to get the path directory of a geodatabase, gSSURGO_CA.gdb. Inside the gSSURGO_CA. gdb is a feature layer, MUPOLYGON. shp. How would I change this script to get the path directory for the geodatabase, instead of the feature layer, MUPOLYGON directory?
var MULayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Where(fl => fl.Name.Contains("MUPOLYGON")).FirstOrDefault();
var gdbPath = MULayer.GetPath();
Thanks!