jtolsdorf

Retrieving FULL file path in GDB - Describe()

Discussion created by jtolsdorf on Oct 4, 2011
Latest reply on Oct 5, 2011 by jskinner-esristaff
As an example:
If I have the FeatureClass 'Highway' located in "C:\Users\JohnCitizen\Documents\ArcGIS\Default.gdb\Roads\Highway" where Roads is a FeatureDataset, how do I retrieve "C:\Users\JohnCitizen\Documents\ArcGIS\Default.gdb\Roads" as the full file path?

All the Describe Object properties (e.g. arcpy.Describe(Highway).path or arcpy.Describe(Highway).catalogPath) seem to return "C:\Users\JohnCitizen\Documents\ArcGIS\Default.gdb" or "C:\Users\JohnCitizen\Documents\ArcGIS\Default.gdb\Highway".

Outcomes