I have path to layer or feature
C:\base.gdb\test
How to check is table or feature class by arcpy?
I have path to layer or feature
C:\base.gdb\test
How to check is table or feature class by arcpy?
Use the arcpy.List... functions. First have to set the env.workspace to the fgdb. Then use arcpy.ListTables() or arcpy.ListFeatureclasses(). Each of these returns a python list of the requested type. If the list is empty (len(list) == 0), then there is no thing of that type. Unfortunately there does not seem to be a higher level function like arcpy.ListContents() or something.