Is there a way to check if a feature class full path string is a path to a feature class within a file geodatabase feature dataset in arcpy?
I'd like to return
I can't find it in any of the applicable
Describe objects. I can do it with string manipulation...
fullpath = r"C:\test\test.gdb\testdataset\featureclass" pathlen = len(fullpath.split (".gdb")) + 4 namelen = len(fullpath.split ("\\")[-1]) dataset = fullpath[pathlen:-namelen].replace ("\\", "")
This seems like too much code though. Is there a better way?